wiki:Ru:Help/HiDPISupport

Version 2 (modified by ak099, 8 years ago) ( diff )

--

Перевод не завершен

Другие языки:

Поддержка HiDPI

Эта страница содержит информацию об использовании JOSM с дисплеями высокого разрешения.

TOC(inline)

Основы

  1. Нормальная поддержка HiDPI была добавлена в Java 9, так что убедитесь, что у вас Java 9 или более поздняя версия.
  2. Требуется JOSM версии r12722 или более поздней.

Можно ожидать лучших результатов с чётными коэффициентами масштабирования, например, 200%, 400%, ... но и другие значения тоже поддерживаются.

Как включить режим HiDPI

Если режим HiDPI не включён "из коробки", ниже приведены способы активировать его.

Windows

В Windows, можно активировать scaled display mode в самой системе. См., например, эту подробную справочную страницу.

В Windows 7, есть опция Display / Set custom text size (DPI), в Windows 8 она называется Display / Change the size of all items, а в Windows 10 — Display / Customize your display / Change the size of text, apps, and other items

Linux

Можно активировать режим HiDPI для одного приложения, запуская его с присваиванием переменной окружения GDK_SCALE значения 2, 4, ..., и т.д.

GDK_SCALE=2 java -jar josm.jar

Дополнительные настройки

Фоновое изображение
By default, the tiles of the background imagery are scaled by the same factor as other GUI elements. This ensures appropriate font size, in case the background imagery contains text and symbols. However, it leads to reduced image resolution.

Under Imagery preferences / Tab Settings / Tiles zoom offset, you can set an offset of 1. This makes JOSM fetch tiles of one zoom level higher and double the image resolution. Currently, this setting only applies to main map area and not the download dialog.

Размер шрифта меню
The font size for the main menu can be scaled by a certain factor using the advanced preference value gui.scale.menu.font. It is intended for relatively small adjustments. (JOSM r12923 or later)
Размеры значков
There are advanced options iconsize.* to tweak the default icon sizes. In particular iconsize.smallicon will affect the icons in front of menu items.
HiDPISupport Style
This style scales the drawing of the map area using MapCSS tools. It was created at a time of poor HiDPI support in Java and should only be required in exceptional cases.
Image scaling (deprecated, experimental)
The advanced option gui.scale was used to scale the GUI, basically trying to implement what is now available as Java 9 HiDPI support. It only got as far as scaling images. Further development is not planned as it is obsoleted by the Java 9 features. This option may be removed in a future release of JOSM.
Note: See TracWiki for help on using the wiki.