Hi,
Thanks for the feedback Michael. Helvetica Neue is not available by default on Windows (It seems to be the default on Mac).
The discussion is also happening in parallel on Bug 469088 [1]. We may have to investigate how to deploy a specific (free) font with the test bundles, to ensure
it is consistently available for everyone.
[1] 469088 : [ui]: difference between diagram display in linux and win os
https://bugs.eclipse.org/bugs/show_bug.cgi?id=469088
Camille
De : mdt-papyrus.dev-bounces@xxxxxxxxxxx [mailto:mdt-papyrus.dev-bounces@xxxxxxxxxxx]
De la part de Michael Golubev
Envoyé : mardi 2 juin 2015 12:29
À : Papyrus Project list
Objet : Re: [mdt-papyrus.dev] About layout tests
I am at Mac OS 10.10.3 with only standard set of fonts, and I don't have "Liberation Sans"
Trying to explicitly set it for a label like this:
@Override
protected void refreshFont() {
System.err.println("NameLabel font BEFORE: " + getFigure().getFont().getFontData()[0]);
FontData fontData = new FontData(
"Liberation Sans", 14, SWT.BOLD | SWT.NORMAL);
setFont(fontData);
System.err.println("NameLabel font AFTER: " + getFigure().getFont().getFontData()[0]);
}
produces:
NameLabel font BEFORE: 1|.Helvetica Neue DeskInterface|9.0|0|COCOA|1|.HelveticaNeueDeskInterface-Regular
NameLabel font AFTER: 1|.Helvetica Neue DeskInterface|14.0|1|COCOA|1|.HelveticaNeueDeskInterface-Bold
Regards,
Michael
On Tue, Jun 2, 2015 at 11:11 AM, LETAVERNIER Camille <Camille.LETAVERNIER@xxxxxx> wrote:
Hi all,
Most Layout tests are currently disabled in Papyrus, due to the different behavior on different OS. The issue is due to the different sets of fonts available on each OS. Especially,
the default “Segoe UI” used by GMF is not available (At least by default?) on Linux.
So for Layout Tests models, you should use “Liberation Sans” instead of Segoe UI, to ensure the same font is available on Linux (Hudson) and Windows. Can a Mac user (Christian? :) ) confirm that this font also exists on Mac? (We didn’t find too many fonts common
to Windows and CentOS, by default)
Camille
_______________________________________________
mdt-papyrus.dev mailing list
mdt-papyrus.dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/mdt-papyrus.dev
--
Michael "Borlander" Golubev
Eclipse Committer (GMF, UML2Tools)
at Montages Think Tank, Prague, Czech Republic
1165/1 Dvorecka, 14700, Prague-4 Podoli
|