archimatetool / archi

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

View scaling without default font (segoe) is broken #1039

Closed smileham closed 2 months ago

smileham commented 2 months ago

Version of Archi

5.3.0

Archi Plug-ins

N/A

Operating System

Windows 11

Expected Behaviour

Zooming the view page, or exporting the view at greater than 100% with an alternative font should render with the correct font at the correct size.

Actual Behaviour

Text Boxes are cut off, font is not rendered correctly.

In these examples, the "Business Process" has a font of Segoe, the others are "Roboto Regular"

100% - image 150% -

image

Steps to Reproduce the Behaviour

  1. Change to alternative font (Roboto downloaded from Google)
  2. Zoom View or Export at > 100%
  3. Render is broken
Phillipus commented 2 months ago

Hi, I tried to reproduce this using Roboto Regular but it was OK for me. Your Roboto font looks different than mine. I'm using the one in C:\Windows\Fonts\ Could you try a different version of Roboto? Having said that, the Eclipse Draw2d framework does have some difficulty rendering some fonts, so you'll have to avoid these.

smileham commented 2 months ago

Just tried it with a different version of Roboto from dafont.com and this time it's even wierder...

image

Looks almost like the issue in 974

I'll see if there is another version of Roboto out there...

smileham commented 2 months ago

Working now!

image

Looks like my fonts were installed as a Local user...

Removed them from %LOCALAPPDATA%\Microsoft\Windows\Fonts\ , installed the fonts for all users to Windows/Fonts, rebooted, and it's happy now!

Cheers