#21321 closed defect (othersoftware)
How to change font of object lables on the map
Reported by: | iman | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Core mappaint | Version: | tested |
Keywords: | font font-family mappaint java8 | Cc: |
Description
I'm trying to change the font of object lables on the map by setting mappaint.font
to my desired font name that is installed on the Windows 10.
The font I'm trying to use is one of these:
"Vazir Regular" or "Vazir UI Regular": https://github.com/rastikerdar/vazir-font
"Sahel Regular": https://github.com/rastikerdar/sahel-font
The names I tried for preference value are "Vazir" or "Vazir UI" or "Sahel". But after JOSM restart there is no change in font.
I tried out some fonts like "Tahoma" and "Courier New" and for both font change was successful.
I mainly want to change font of Persian lables.
Also good to mention that in some previous versions of JOSM it was possible.
Attachments (0)
Change History (9)
comment:1 by , 4 years ago
Keywords: | font added |
---|
comment:2 by , 4 years ago
Owner: | changed from | to
---|---|
Status: | new → needinfo |
comment:3 by , 4 years ago
Yes it was same. But now I started with fresh JOSM and this is my current status report after I set mappaint.font
to "Vazir" and restarted JOSM:
URL:https://josm.openstreetmap.de/svn/trunk Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b Last:Changed Date: 2021-09-03 03:12:33 +0200 (Fri, 03 Sep 2021) Build-Date:2021-09-03 01:31:19 Revision:18193 Relative:URL: ^/trunk Identification: JOSM/1.5 (18193 en) Windows 10 64-Bit OS Build number: Windows 10 Pro 2009 (19043) Memory Usage: 569 MB / 1333 MB (443 MB allocated, but free) Java version: 1.8.0_301-b09, Oracle Corporation, Java HotSpot(TM) 64-Bit Server VM Look and Feel: com.sun.java.swing.plaf.windows.WindowsLookAndFeel Screen: \Display0 1920×1080 (scaling 1.00×1.00) Maximum Screen Size: 1920×1080 Best cursor sizes: 16×16→32×32, 32×32→32×32 System property file.encoding: Cp1256 System property sun.jnu.encoding: Cp1256 Locale info: en_US Numbers with default locale: 1234567890 -> 1234567890 VM arguments: [-Djava.net.useSystemProxies=true] Dataset consistency test: No problems found Map paint styles: + https://josm.openstreetmap.de/josmfile?page=Styles/HiDPISupport&zip=1 Last errors/warnings: - 00001.289 W: Unable to request certificate of https://roottest-g3.pkioverheid.nl - 00001.615 W: Unable to request certificate of https://roottest-g3.pkioverheid.nl
Also tried some other fonts.
These are working:
- IRLotus
- IRRoya
- XB Roya
These ones not working:
- IRYekan
- B Roya
- B Lotus
- XB Niloofar
comment:4 by , 4 years ago
Owner: | changed from | to
---|---|
Status: | needinfo → new |
comment:5 by , 4 years ago
Type: | task → defect |
---|
comment:6 by , 4 years ago
Installed JOSM using installer and now it's working with Vazir font. Maybe I was installed wrong Java version(?)
My status report:
Revision:18193 Build-Date:2021-09-05 16:23:28 Identification: JOSM/1.5 (18193 en) Windows 10 64-Bit OS Build number: Windows 10 Pro 2009 (19043) Memory Usage: 248 MB / 3036 MB (86 MB allocated, but free) Java version: 16.0.2+7, Azul Systems, Inc., OpenJDK 64-Bit Server VM Look and Feel: com.sun.java.swing.plaf.windows.WindowsLookAndFeel Screen: \Display0 1920×1080 (scaling 1.25×1.25) Maximum Screen Size: 1920×1080 Best cursor sizes: 16×16→32×32, 32×32→32×32 System property file.encoding: Cp1256 System property sun.jnu.encoding: Cp1256 Locale info: en_US Numbers with default locale: 1234567890 -> 1234567890 VM arguments: [-Djpackage.app-version=1.5.18193, --add-modules=java.scripting,java.sql,javafx.controls,javafx.media,javafx.swing,javafx.web, --add-exports=java.base/sun.security.action=ALL-UNNAMED, --add-exports=java.desktop/com.sun.imageio.plugins.jpeg=ALL-UNNAMED, --add-exports=java.desktop/com.sun.imageio.spi=ALL-UNNAMED, --add-opens=java.base/java.lang=ALL-UNNAMED, --add-opens=java.base/java.nio=ALL-UNNAMED, --add-opens=java.base/jdk.internal.loader=ALL-UNNAMED, --add-opens=java.base/jdk.internal.ref=ALL-UNNAMED, --add-opens=java.desktop/javax.imageio.spi=ALL-UNNAMED, --add-opens=java.desktop/javax.swing.text.html=ALL-UNNAMED, --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED, -Djpackage.app-path=%UserProfile%\AppData\Local\JOSM\JOSM.exe] Dataset consistency test: No problems found Last errors/warnings: - 00000.416 W: extended font config - overriding 'filename.Mongolian_Baiti=monbaiti.ttf' with 'MONBAITI.TTF' - 00000.416 W: extended font config - overriding 'filename.Kalinga=kalinga.ttf' with 'KALINGA.TTF' - 00000.417 W: extended font config - overriding 'filename.Iskoola_Pota=iskpota.ttf' with 'ISKPOTA.TTF' - 00000.418 W: extended font config - overriding 'filename.Shruti=shruti.ttf' with 'SHRUTI.TTF' - 00000.419 W: extended font config - overriding 'filename.Raavi=raavi.ttf' with 'RAAVI.TTF' - 00000.419 W: extended font config - overriding 'filename.Gautami=gautami.ttf' with 'GAUTAMI.TTF' - 00000.420 W: extended font config - overriding 'filename.Vrinda=vrinda.ttf' with 'VRINDA.TTF' - 00000.421 W: extended font config - overriding 'filename.Kartika=kartika.ttf' with 'KARTIKA.TTF' - 00000.421 W: extended font config - overriding 'filename.Latha=latha.ttf' with 'LATHA.TTF' - 00000.914 E: java.security.KeyStoreException: Windows-ROOT not found. Cause: java.security.NoSuchAlgorithmException: Windows-ROOT KeyStore not available
comment:7 by , 4 years ago
Keywords: | java8 added |
---|---|
Resolution: | → othersoftware |
Status: | new → closed |
Not a wrong java version, but an old version which is not developed, anymore.
If it works with java 11+, I tend to close this as othersoftware and blame the old java version.
By the way, is ##21320 still reproducible with java 16?
comment:8 by , 4 years ago
Yes, it's OK to close this.
and yes, #21320 occurs with java 16. I've forgot to push the button and it was preview :/ If status report is still needed I can post it there.
I guess, your setup (status report) is identical to #21320?