Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [mdt-papyrus.dev] About layout tests

Hello,

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

tek: +420 602 483 463


Back to the top