archimatetool / archi

Archi: ArchiMate Modelling Tool
https://www.archimatetool.com
MIT License
914 stars 267 forks source link

Panes titles looking weird in windows 10 #974

Closed dxps closed 8 months ago

dxps commented 8 months ago

Dear Archi tool community,

I just installed in a Windows 10 system and as you can see the panes' titles ale looking weird. Any idea, please ❔

Many thanks in advance!

Version of Archi

Version 5.1.0

Archi Plug-ins

None, default installation

Operating System

Ms Windows 10 Version 21H2 (OS Build 19044.3448)

Expected Behaviour

Panes titles looking normal.

Actual Behaviour

image

Phillipus commented 8 months ago

Is this only when using the dark theme? What language setting are you using on Windows?

dxps commented 8 months ago

Good point! The titles are fine only when selecting Basic or Classic. For all the other (three, that is Dark, Light, and System) the titles are looking gibberish.

The OS language is standard English US.

dxps commented 8 months ago

Continued with the Classic theme, all fine for now, although I'd prefer to use the dark mode.

There seems to be other places where this behavior still exists, such as this: image

I might have an idea why this happens, but let me check first.

Appreciate the quick feedback! 🙏 Many thanks!

Phillipus commented 8 months ago

This has been seen before in Eclipse itself and Eclipse-based apps, see https://bugs.eclipse.org/bugs/show_bug.cgi?id=551965 and https://github.com/dbeaver/dbeaver/issues/18150.

I think it has something to do with system fonts. There's nothing I can change in Archi's code to fix this so I think you'll have to investigate further on your side.

dxps commented 8 months ago

Changed back to default (Segoe UI) font and it's all good. 😊 image

There could be an issue with one of those Eclipse components, since the same issue was also present in DBeaver (another tool, based on the same software stack).

@Phillipus Thanks again for the feedback! 🙏

Phillipus commented 8 months ago

Changed back to default (Segoe UI) font and it's all good.

Where did you change that?

dxps commented 8 months ago

With such script file (saved as something.reg, right-click it and select the Merge option, then reboot) you can change the font:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts]
"Segoe UI (TrueType)"=""
"Segoe UI Bold (TrueType)"=""
"Segoe UI Bold Italic (TrueType)"=""
"Segoe UI Italic (TrueType)"=""
"Segoe UI Light (TrueType)"=""
"Segoe UI Semibold (TrueType)"=""
"Segoe UI Symbol (TrueType)"=""

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\FontSubstitutes]
"Segoe UI"="Fira Sans"

And with this one (same procedure as before), you can change it back to the default:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts]
"Segoe UI (TrueType)"="segoeui.ttf"
"Segoe UI Black (TrueType)"="seguibl.ttf"
"Segoe UI Black Italic (TrueType)"="seguibli.ttf"
"Segoe UI Bold (TrueType)"="segoeuib.ttf"
"Segoe UI Bold Italic (TrueType)"="segoeuiz.ttf"
"Segoe UI Emoji (TrueType)"="seguiemj.ttf"
"Segoe UI Historic (TrueType)"="seguihis.ttf"
"Segoe UI Italic (TrueType)"="segoeuii.ttf""Segoe UI Light (TrueType)"="segoeuil.ttf"
"Segoe UI Light Italic (TrueType)"="seguili.ttf"
"Segoe UI Semibold (TrueType)"="seguisb.ttf"
"Segoe UI Semibold Italic (TrueType)"="seguisbi.ttf"
"Segoe UI Semilight (TrueType)"="segoeuisl.ttf"
"Segoe UI Semilight Italic (TrueType)"="seguisli.ttf"
"Segoe UI Symbol (TrueType)"="seguisym.ttf"
"Segoe MDL2 Assets (TrueType)"="segmdl2.ttf"
"Segoe Print (TrueType)"="segoepr.ttf"
"Segoe Print Bold (TrueType)"="segoeprb.ttf"
"Segoe Script (TrueType)"="segoesc.ttf"
"Segoe Script Bold (TrueType)"="segoescb.ttf"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\FontSubstitutes]
"Segoe UI"=-

Windows stuff ... 🤷‍♂️ I'm a Linux user, I just tried to beautify it a bit ... 😊