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 have open a bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=468349

When I see your discussion with Fonts and OS and if you have a look on Stack Trace reported in this bug, perhaps it concerned the same elements…,

Looks like a bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=461065. 
Note that there are 2 competing gerrits for this bug:
- https://git.eclipse.org/r/#/c/43224/ (from Montages) and
- https://bugs.eclipse.org/bugs/attachment.cgi?id=251392 from the user who submitted the bug
Regards 
Michael
 


On Tue, Jun 2, 2015 at 2:19 PM, Tosi Eric <e.tosi@xxxxxxxxxxxx> wrote:
 

I have open a bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=468349

 
When I see your discussion with Fonts and OS and if you have a look on Stack Trace reported in this bug, perhaps it concerned the same elements…,
 
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0

        at java.util.ArrayList.rangeCheck(Unknown Source)

        at java.util.ArrayList.get(Unknown Source)

        at org.eclipse.papyrus.uml.diagram.common.figure.node.HTMLCornerBentFigure.setFont(HTMLCornerBentFigure.java:329)

 

Regards,

Eric

 

De : mdt-papyrus.dev-bounces@xxxxxxxxxxx [mailto:mdt-papyrus.dev-bounces@xxxxxxxxxxx] De la part de LETAVERNIER Camille
Envoyé : mardi 2 juin 2015 13:02


À : Papyrus Project list
Objet : Re: [mdt-papyrus.dev] About layout tests

 

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

 

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

 


_______________________________________________
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