archi icon indicating copy to clipboard operation
archi copied to clipboard

View appearance across monitor configuration and OS

Open jbsarrodie opened this issue 1 year ago • 4 comments

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

jbsarrodie avatar Aug 17 '23 09:08 jbsarrodie

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 avatar Aug 17 '23 10:08 Phillipus

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 avatar Aug 17 '23 10:08 Phillipus

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

Phillipus avatar Aug 18 '23 13:08 Phillipus

Thanks for documenting this. We suffer from this as well and I was just documenting a similar test case. Looking forward to a fix. Thanks for all your hard work on a great software pkg.

sonear avatar Aug 13 '24 01:08 sonear