archimatetool / archi

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

View appearance across monitor configuration and OS #952

Open jbsarrodie opened 10 months ago

jbsarrodie commented 10 months ago

I intend to work on this, so this issue is used to keep track of my findings

I use Archi in a multi-user/multi-organization setup, and I would expect that views designed in one computer are rendered exactly the same way on colleagues computer, whaterver their montor configuration or OS (some work on Windows, some work on Mac OS). Unfortunately, this is not the case and significant differences make it difficult to collaborate on a model.

Of course, the first basic (and easy to do) things is to make sure the same fonts are installed on all machines. This has been done in my case as we mostly rely on either Microsoft, or corporate fonts which are available for every one.

To illustrate, I've create a small model with two (anonymized) views. Below are screenshots of these views in deifferent context:

Windows 10, FullHD@100% (primary monitor)

image image

Windows 10, FullHD@125% (primary monitor)

image image

MacOS Ventura, 4K@100% (secondary monitor)

View #1 View #2

Phillipus commented 10 months ago

There are unsolved SWT and Draw2d issues with fractional scaling factors of 125%, 150%, and 175%. In SWT, scaling is rounded up to the nearest 100% or 200%.

Phillipus commented 10 months ago

Take a look at the SWT DPIUtil class

https://github.com/eclipse-platform/eclipse.platform.swt/blob/0cc66f1ea3ffd9263d9c8d0603f0911bce01acee/bundles/org.eclipse.swt/Eclipse%20SWT/common/org/eclipse/swt/internal/DPIUtil.java

Phillipus commented 10 months ago

For differing font sizes see https://github.com/archimatetool/archi/issues/655