Modify

Opened 2 years ago

Closed 2 years ago

#22862 closed defect (irreproducible)

Bad fonts in JOSM

Reported by: yoasif@… Owned by: yoasif@…
Priority: normal Milestone:
Component: Core Version:
Keywords: template_report fonts rendering linux fedora Cc:

Description (last modified by gaben)

What steps will reproduce the problem?

  1. Install JOSM from Flatpak on Fedora 37
  2. Open JOSM

What is the expected result?

Ideally, I see the default fonts selected in my GNOME settings. Otherwise, I should see fonts that are not compressed looking.

What happens instead?

Really bad looking fonts.

Please provide any additional information below. Attach a screenshot if possible.


Relative:URL: ^/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2023-03-30 16:51:36 +0200 (Thu, 30 Mar 2023)
Revision:18700
Build-Date:2023-03-31 01:30:56
URL:https://josm.openstreetmap.de/svn/trunk

Identification: JOSM/1.5 (18700 en) Linux Freedesktop.org SDK 22.08 (Flatpak runtime)
Memory Usage: 320 MB / 15984 MB (200 MB allocated, but free)
Java version: 17.0.6+10, Flathub, OpenJDK 64-Bit Server VM
Look and Feel: javax.swing.plaf.metal.MetalLookAndFeel
Screen: :0.0 1920×1080 (scaling 1.00×1.00)
Maximum Screen Size: 1920×1080
Best cursor sizes: 16×16→16×16, 32×32→32×32
Environment variable LANG: en_US.UTF-8
System property file.encoding: UTF-8
System property sun.jnu.encoding: UTF-8
Locale info: en_US
Numbers with default locale: 1234567890 -> 1234567890
Desktop environment: GNOME
VM arguments: [--module-path=/app/share/openjfx/lib, --add-modules=java.scripting,java.sql,javafx.controls,javafx.media,javafx.swing,javafx.web, -Djosm.restart=true, -Djava.net.useSystemProxies=true, --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]

Attachments (3)

Screenshot from 2023-04-06 17-37-16.png (99.3 KB ) - added by yoasif@… 2 years ago.
Screenshot from 2023-04-10 10-48-11.png (56.9 KB ) - added by yoasif@… 2 years ago.
Screenshot from 2023-04-25 14-53-58.png (100.0 KB ) - added by yoasif@… 2 years ago.

Download all attachments as: .zip

Change History (20)

by yoasif@…, 2 years ago

comment:1 by gaben, 2 years ago

Description: modified (diff)

comment:2 by gaben, 2 years ago

Keywords: fonts rendering added

comment:3 by taylor.smock, 2 years ago

Keywords: linux fedora added

Ideally, I see the default fonts selected in my GNOME settings. Otherwise, I should see fonts that are not compressed looking.

As a stupid question, does this happen when you aren't using custom fonts?
If not, can you tell us what the custom fonts are, and how/where you got them (or if they were installed by default).

Also, I'm not seeing a way to set custom fonts in the gnome-control-center (GNOME settings) application. Are you using Gnome Tweaks?

comment:4 by taylor.smock, 2 years ago

Owner: changed from team to yoasif@…
Status: newneedinfo

by yoasif@…, 2 years ago

comment:5 by yoasif@…, 2 years ago

I *am* using GNOME Tweaks. My chosen fonts are:

Ubuntu Regular 10 - Interface Text
Cantarell Regular 11 - Document Text
Monaco Regular 10 - Monospace Text
Cantarell Bold 11 - Legacy Window Titles

Cantarell is a default UI font in Fedora, and I downloaded and installed Ubuntu from GitHub (I believe) - the folder is labeled "ubuntu-font-family-0.83".

I'm using some hacked version of Monaco labeled "Monaco Linux", but I kinda doubt the JOSM UI relies on monospace text to begin with.


comment:6 by taylor.smock, 2 years ago

The rendering for the MOTD is done by Java Swing. I'm thinking that the monospace font is the problem -- I tested on Ubuntu (since that is what I have on my Pi), and I didn't see the problem.

Font info:

  • fonts-cantarell v0.303.1-1
  • fonts-ubuntu v0.83-6ubuntu1

comment:7 by yoasif@…, 2 years ago

I removed the Monaco font from my fonts directory and I also updated my font selection in GNOME Tweaks to be Ubuntu Mono Regular 10 and restarted JOSM - the app looks the same.

comment:8 by taylor.smock, 2 years ago

That is funny -- I wasn't able to reproduce on Ubuntu. I'll have to check on Fedora later.

comment:9 by skyper, 2 years ago

Interesting. The Debian package and our own Debian/Ubuntu packages depend on fonts-nofo. Maybe installing these fonts will help.

comment:10 by yoasif@…, 2 years ago

I installed:

google-noto-sans-vf-fonts
google-noto-serif-vf-fonts
google-noto-sans-mono-vf-fonts

and restarted JOSM. It looks the same for me.

However, I have JOSM installed via a Flatpak, and I don't know how that affects things.

comment:11 by taylor.smock, 2 years ago

If anything, the flatpak should be more reproducible when it comes to these type so of problems, since I can be certain I have the same libraries as the user.

Maybe something is borked in a library. Can you try running flatpak repair (as root if you installed JOSM to the system flatpak installation)?

comment:12 by yoasif@…, 2 years ago

Just ran flatpak repair as my logged in user and as root:

sudo flatpak repair
[sudo] password for asif: 
Working on the system installation at /var/lib/flatpak
[1/99] Verifying flathub:runtime/org.freedesktop.Platform.GL.default/x86_64/22.0[2/99] Verifying flathub:runtime/org.freedesktop.Platform.VAAPI.Intel/x86_64/22.[12/99] Verifying flathub:runtime/org.kde.PlatformTheme.QGnomePlatform/x86_64/5.[19/99] Verifying flathub:runtime/org.freedesktop.Platform.openh264/x86_64/2.3.0[21/99] Verifying flathub:runtime/org.freedesktop.Platform.VAAPI.Intel/x86_64/21[22/99] Verifying flathub:runtime/com.mattjakeman.ExtensionManager.Locale/x86_64[24/99] Verifying flathub:runtime/org.freedesktop.Platform.ffmpeg-full/x86_64/22[27/99] Verifying flathub:runtime/com.transmissionbt.Transmission.Locale/x86_64/[35/99] Verifying flathub:runtime/org.freedesktop.Platform.GL.default/x86_64/21.[44/99] Verifying flathub:runtime/org.kde.WaylandDecoration.QGnomePlatform-decor[68/99] Verifying flathub:runtime/org.freedesktop.Platform.GL.default/x86_64/22.[84/99] Verifying flathub:runtime/org.freedesktop.Platform.openh264/x86_64/2.2.0[99/99] Verifying flathub:app/com.transmissionbt.Transmission/x86_64/stable…
Checking remotes...
Pruning objects
Erasing .removed

Unfortunately, it is the same.

comment:13 by taylor.smock, 2 years ago

I just saw something that might help on #flatpak on Matrix (the app id was different):
flatpak run --command=fc-cache org.openstreetmap.josm --force --verbose

Does that work?

by yoasif@…, 2 years ago

comment:14 by anonymous, 2 years ago

I did nothing (except routine updates) and things look fine now. No idea what changed.


comment:15 by gaben, 2 years ago

What's your status report?

Last edited 2 years ago by gaben (previous) (diff)

comment:16 by yoasif@…, 2 years ago

Status report:

Relative:URL: ^/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2023-03-30 16:51:36 +0200 (Thu, 30 Mar 2023)
Revision:18700
Build-Date:2023-03-31 01:30:56
URL:https://josm.openstreetmap.de/svn/trunk

Identification: JOSM/1.5 (18700 en) Linux Freedesktop.org SDK 22.08 (Flatpak runtime)
Memory Usage: 1816 MB / 15984 MB (1144 MB allocated, but free)
Java version: 17.0.6+10, Flathub, OpenJDK 64-Bit Server VM
Look and Feel: javax.swing.plaf.metal.MetalLookAndFeel
Screen: :0.0 1920×1080 (scaling 1.00×1.00)
Maximum Screen Size: 1920×1080
Best cursor sizes: 16×16→16×16, 32×32→32×32
Environment variable LANG: en_US.UTF-8
System property file.encoding: UTF-8
System property sun.jnu.encoding: UTF-8
Locale info: en_US
Numbers with default locale: 1234567890 -> 1234567890
Desktop environment: GNOME
VM arguments: [--module-path=/app/share/openjfx/lib, --add-modules=java.scripting,java.sql,javafx.controls,javafx.media,javafx.swing,javafx.web, -Djosm.restart=true, -Djava.net.useSystemProxies=true, --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]


cache.bing.attribution.xml=1680808167
cache.capabilities1637351842=1681856419
cache.motd.html=1682448782
cache.motd.html.java=17.0.6
cache.motd.html.lang=En:
cache.motd.html.version=18700
changesetdialog.lastHeight=0
commandstack.lastHeight=0
conflict.lastHeight=0
download.tab=2
draw.rawgps.lines=-1
draw.splashscreen=false
filter.lastHeight=0
geoimage.docked=true
geoimage.geometry=x=790,y=441,width=330,height=237
geoimage.lastHeight=847
geoimage.viewer.centre.on.image=true
geoimage.visible=true
gui.geometry=x=557,y=152,width=1000,height=740
gui.maximized=true
imagery.entries=[{max-zoom=22, min-zoom=1, noTileHeaders={"X-VE-Tile-Info":["no-tile"]}, noTileChecksums={"MD5":["c13269481c73de6e18589f9fbc3bdf7e"]}, metadataHeaders={"X-VE-TILEMETA-CaptureDatesRange":"Capture Date"}, transparent=true, minimumTileExpire=3600, name=Bing aerial imagery, id=Bing, type=bing, url=https://www.bing.com/maps/, permission-reference-url=https://wiki.openstreetmap.org/wiki/Bing_Maps, cookies=, icon=data:image/png;base64,iVBORw0..., customHttpHeaders={}, category=photo},
  {max-zoom=22, noTileHeaders={"Etag":["\"10i954m13i2\""]}, noTileChecksums={"MD5":["f27d9de7f80c13501f470595e327aa6d"]}, transparent=true, minimumTileExpire=3600, name=Esri World Imagery, id=EsriWorldImagery, type=tms, url=https://{switch:services,server}.arcgisonline.com/arcgis/rest/services/World_Imagery/MapServer/tile/{zoom}/{y}/{x}, attribution-text=Terms & Feedback, attribution-url=https://wiki.openstreetmap.org/wiki/Esri, cookies=, icon=data:image/png;base64,iVBORw0..., customHttpHeaders={}, category=photo},
  {max-zoom=22, transparent=true, minimumTileExpire=3600, name=Esri World Imagery (Clarity) Beta, id=EsriWorldImageryClarity, type=tms, url=https://clarity.maptiles.arcgis.com/arcgis/rest/services/World_Imagery/MapServer/tile/{zoom}/{y}/{x}, attribution-text=Terms & Feedback, attribution-url=https://wiki.openstreetmap.org/wiki/Esri, permission-reference-url=https://github.com/osmlab/editor-layer-index/pull/358#issuecomment-361416110, cookies=, icon=data:image/png;base64,iVBORw0..., description=Esri archive imagery that may be clearer and more accurate than the default layer., customHttpHeaders={}, category=photo},
  {max-zoom=22, noTileHeaders={"ETag":["\"336b022ed883bc72347a637634e490d4\"|\"067736a547cafe90014b4e59b6510abe\"|\"ee1f6802b0234046b553cbbc672ac7d9\"|\"9f5a2f1d7cc131e58befc2052c71c827\""]}, noTileChecksums={"MD5":["58e78313d04adf0ea64b8de8590c3d46"]}, transparent=true, minimumTileExpire=3600, name=Mapbox Satellite, id=Mapbox, type=tms, url=https://{switch:a,b,c,d}.tiles.mapbox.com/v4/mapbox.satellite/{zoom}/{x}/{y}.jpg?access_token={apikey}, attribution-text=Terms & Feedback, attribution-url=https://www.mapbox.com/about/maps/, permission-reference-url=https://wiki.openstreetmap.org/wiki/Vertical_Aerial_Photographs#DigitalGlobe_.2F_MapBox, cookies=, icon=data:image/png;base64,iVBORw0..., customHttpHeaders={}, category=photo},
  {max-zoom=22, noTileChecksums={"MD5":["08d6916814b216570e5241732c41d5e5"]}, valid-georeference=true, transparent=true, minimumTileExpire=3600, name=Maxar Premium Imagery, id=Maxar-Premium, type=tms, url=https://services.digitalglobe.com/earthservice/tmsaccess/tms/1.0.0/DigitalGlobe:ImageryTileService@EPSG:3857@jpg/{zoom}/{x}/{-y}.jpg?connectId={apikey}, attribution-text=Terms & Feedback, attribution-url=https://wiki.openstreetmap.org/wiki/DigitalGlobe, cookies=, icon=data:image/png;base64,iVBORw0..., description=Maxar Premium is a mosaic composed of Maxar basemap with select regions filled with +Vivid or custom area of interest imagery, 50cm resolution or better, and refreshed more frequently with ongoing updates., customHttpHeaders={}, category=photo},
  {max-zoom=19, valid-georeference=true, modTileFeatures=true, transparent=true, minimumTileExpire=3600, name=OpenStreetMap Carto (Standard), id=standard, type=tms, url=https://tile.openstreetmap.org/{zoom}/{x}/{y}.png, attribution-text=© OpenStreetMap contributors, attribution-url=https://www.openstreetmap.org/, permission-reference-url=https://wiki.osmfoundation.org/wiki/Terms_of_Use, cookies=, icon=data:image/png;base64,iVBORw0..., customHttpHeaders={}, category=osmbasedmap}
]
imagery.layers.default=[Bing, EsriWorldImagery, EsriWorldImageryClarity, Mapbox, Maxar-Premium, standard]
imagery.offsetbookmarks=[]
josm.version=18700
lastDirectory=${HOME}/Downloads/OSM Photos/old
layerlist.lastHeight=20
layerlist.minimized=true
mappaint.renderer-class-name=org.openstreetmap.josm.data.osm.visitor.paint.StyledMapRenderer
mappaint.style.known-defaults=[resource://styles/standard/elemstyles.mapcss, resource://styles/standard/potlatch2.mapcss]
mapstyle.lastHeight=0
minimap.lastHeight=0
mirror.<josm.cache>/images.https://josm.openstreetmap.de/raw-attachment/wiki/Maps/USA%20Country/TIGER2017RoadsOverlay.png=[1680808166400, <josm.cache>/images/mirror_https___josm.openstreetmap.de_raw-attachment_wiki_Maps_USA_20Country_TIGER2017RoadsOverlay.png]
mirror.<josm.cache>/images.https://osmlab.github.io/editor-layer-index/sources/north-america/us/TIGER2017RoadsOverlay.png=[1680808166454, <josm.cache>/images/mirror_https___osmlab.github.io_editor-layer-index_sources_north-america_us_TIGER2017RoadsOverlay.png]
mirror.<josm.cache>/images.https://www.fs.usda.gov/sites/all/themes/fs_hq/images/usfslogo.png=[1680808165951, <josm.cache>/images/mirror_https___www.fs.usda.gov_sites_all_themes_fs_hq_images_usfslogo.png]
mirror.https://josm.openstreetmap.de/maps=[1682448785342, <josm.cache>/mirror_https___josm.openstreetmap.de_maps]
mirror.https://josm.openstreetmap.de/remote/geofabrik-index-v1-nogeom.json=[1681856418621, <josm.cache>/mirror_https___josm.openstreetmap.de_remote_geofabrik-index-v1-nogeom.json]
notes/note_open.lastHeight=0
oauth.use-for-all-requests=false
org.openstreetmap.josm.gui.download.DownloadDialog.geometry=x=460,y=256,width=1000,height=600
org.openstreetmap.josm.gui.preferences.PreferenceDialog.geometry=x=610,y=188,width=800,height=806
osm-download.bounds=40.7071298;-73.7791303;40.7115892;-73.7707154
preferences.reset.draw.rawgps.lines=true
progressdialog.size=590
propertiesdialog.lastHeight=20
propertiesdialog.minimized=true
relationlist.lastHeight=20
relationlist.minimized=true
selectionlist.lastHeight=20
selectionlist.minimized=true
toggleDialogs.width=1057
toolbar=[open, save, download, upload, |, undo, redo, |, dialogs/search(searchExpression=), preference, |, splitway, combineway, wayflip, |, imagery-offset, |, tagginggroup_Highways/Streets, tagginggroup_Highways/Ways, tagginggroup_Highways/Waypoints, tagginggroup_Highways/Barriers, |, tagginggroup_Transport/Car, tagginggroup_Transport/Public Transport, |, tagginggroup_Facilities/Tourism, tagginggroup_Facilities/Food+Drinks, |, tagginggroup_Man Made/Historic Places, |, tagginggroup_Man Made/Man Made]
use.native.file.dialog=true
userlist.lastHeight=0
validator.lastHeight=0
validator.skip=[]
validator.skipBeforeUpload=[]

in reply to:  14 comment:17 by taylor.smock, 2 years ago

Resolution: irreproducible
Status: needinfoclosed

Replying to anonymous:

I did nothing (except routine updates) and things look fine now. No idea what changed.

Nothing changed that we recorded. Probably the runtime fixed a bug, or something else happened (maybe a library required outside of the sandbox changed?).

Anyway, thank you for letting us know that an update (of something) fixed the issue.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain yoasif@….
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.