Bug 469088 - [All Diagrams] Difference between diagram display in linux and win os
Summary: [All Diagrams] Difference between diagram display in linux and win os
Status: NEW
Alias: None
Product: Papyrus
Classification: Modeling
Component: Diagram (show other bugs)
Version: 1.1.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-06-02 04:35 EDT by Francois Le Fevre CLA
Modified: 2017-09-08 09:46 EDT (History)
2 users (show)

See Also:


Attachments
screenshot of /org.eclipse.papyrus.uml.diagram.clazz.tests/model/testInstanceSpecificationLink/model.di for linux (201.87 KB, image/png)
2015-06-02 04:35 EDT, Francois Le Fevre CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Francois Le Fevre CLA 2015-06-02 04:35:13 EDT
Created attachment 254011 [details]
screenshot of /org.eclipse.papyrus.uml.diagram.clazz.tests/model/testInstanceSpecificationLink/model.di for linux

It has been noticed a difference in display between linux and windows os that affects several tests where the position of label/ containers are hard coded.
Comment 1 Camille Letavernier CLA 2015-06-02 05:14:26 EDT
The set of fonts is different on Linux (CentOS) and Windows. The default font used by GMF is SegoeUI, which is not available on Linux (At least not in the default set).

Liberation Sans is common to both OS (Not verified on MacOS yet), and should be used for layout tests
Comment 2 Christian Damus CLA 2015-06-02 06:06:28 EDT
I've never heard of Liberation (speaking as a Mac user).

Arial from Microsoft is on Mac.  Is it on Linux?  How about Helvetica Neue?

Or is there a free font that can be bundled in the tests?
Comment 3 Camille Letavernier CLA 2015-06-02 06:59:52 EDT
> Arial from Microsoft is on Mac. Is it on Linux?

No

> How about Helvetica Neue?

Helvetica is not on Windows (At least not on my version of Windows 7)

> Or is there a free font that can be bundled in the tests?

Maybe the best solution, although I don't know how to do that
Comment 4 Francois Le Fevre CLA 2015-06-02 07:29:44 EDT
Hello
I have tried to find an existing test with @InvalidTest and an embeded model.

I do not find any else the one provided in /junit/plugins/uml/profile/org.eclipse.papyrus.uml.profile.drafter.tests/models/

because many tests just defined on the fly their in memory models.

so my question is : 
"how can I settup the general font property in eclipse programmatylly?"
or
"how can I settup the general font property in papyrus programmatylly?"


==
details:

[flefevre@is227415 tests]$ ll ./junit/plugins/developer/org.eclipse.papyrus.bundles.tests/
total 76
-rw-rw-r-- 1 flefevre flefevre  1462 15 janv. 14:19 about.html
-rw-rw-r-- 1 flefevre flefevre   199 19 févr. 11:25 build.properties
drwxrwxr-x 2 flefevre flefevre  4096 27 mai   09:55 META-INF
-rw-rw-r-- 1 flefevre flefevre 44143 15 janv. 14:19 org.eclipse.papyrus.bundles.tests.launch
drwxrwxr-x 3 flefevre flefevre  4096 15 janv. 14:19 OSGI-INF
-rw-rw-r-- 1 flefevre flefevre   680 19 févr. 11:25 plugin.properties
-rw-rw-r-- 1 flefevre flefevre   705 15 janv. 14:19 pom.xml
drwxrwxr-x 3 flefevre flefevre  4096 15 janv. 14:19 src
drwxrwxr-x 5 flefevre flefevre  4096  1 juin  18:50 target
[flefevre@is227415 tests]$ ll ./junit/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.requirement.tests/
total 28
-rw-rw-r-- 1 flefevre flefevre 1462 15 janv. 14:19 about.html
-rw-rw-r-- 1 flefevre flefevre  136 15 janv. 14:19 build.properties
drwxrwxr-x 2 flefevre flefevre 4096 15 janv. 14:19 META-INF
-rw-rw-r-- 1 flefevre flefevre 2977 15 janv. 14:19 org.eclipse.papyrus.sysml.diagram.requirement.test.launch
-rw-rw-r-- 1 flefevre flefevre  731 15 janv. 14:19 pom.xml
drwxrwxr-x 3 flefevre flefevre 4096 15 janv. 14:19 src
drwxrwxr-x 5 flefevre flefevre 4096  1 juin  18:50 target
[flefevre@is227415 tests]$ ll ./junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.communication.tests/
total 32
-rw-rw-r-- 1 flefevre flefevre 1462 15 janv. 14:19 about.html
-rw-rw-r-- 1 flefevre flefevre  172 15 janv. 14:19 build.properties
drwxrwxr-x 2 flefevre flefevre 4096 15 janv. 14:19 META-INF
-rw-rw-r-- 1 flefevre flefevre 3240 27 mai   09:55 org.eclipse.papyrus.uml.diagram.communication.tests.launch
-rw-rw-r-- 1 flefevre flefevre  629 15 janv. 14:19 plugin.properties
-rw-rw-r-- 1 flefevre flefevre  731 15 janv. 14:19 pom.xml
drwxrwxr-x 3 flefevre flefevre 4096 15 janv. 14:19 src
drwxrwxr-x 5 flefevre flefevre 4096  1 juin  18:14 target
[flefevre@is227415 tests]$ ll ./junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.component.tests/
total 32
-rw-rw-r-- 1 flefevre flefevre 1462 15 janv. 14:19 about.html
-rw-rw-r-- 1 flefevre flefevre  145 15 janv. 14:19 build.properties
drwxrwxr-x 2 flefevre flefevre 4096 15 janv. 14:19 META-INF
-rw-rw-r-- 1 flefevre flefevre 3172 15 janv. 14:19 org.eclipse.papyrus.uml.diagram.component.test.launch
-rw-rw-r-- 1 flefevre flefevre 2467 15 janv. 14:19 plugin.properties
-rw-rw-r-- 1 flefevre flefevre  727 15 janv. 14:19 pom.xml
drwxrwxr-x 3 flefevre flefevre 4096 15 janv. 14:19 src
drwxrwxr-x 5 flefevre flefevre 4096  1 juin  18:50 target
[flefevre@is227415 tests]$ ll ./junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite.tests/
total 40
-rw-rw-r-- 1 flefevre flefevre 1434 15 janv. 14:19 about.html
-rw-rw-r-- 1 flefevre flefevre  245 15 janv. 14:19 build.properties
drwxrwxr-x 2 flefevre flefevre 4096 15 janv. 14:19 META-INF
-rw-rw-r-- 1 flefevre flefevre 9127 29 mai   11:58 org.eclipse.papyrus.uml.diagram.composite.test.launch
-rw-rw-r-- 1 flefevre flefevre  619 15 janv. 14:19 plugin.properties
-rw-rw-r-- 1 flefevre flefevre  727 15 janv. 14:19 pom.xml
drwxrwxr-x 5 flefevre flefevre 4096  1 juin  18:50 target
drwxrwxr-x 3 flefevre flefevre 4096 15 janv. 14:19 test
[flefevre@is227415 tests]$ ll ./junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.interactionoverview.tests/
total 28
-rw-rw-r-- 1 flefevre flefevre 1437 15 janv. 14:19 about.html
-rw-rw-r-- 1 flefevre flefevre  130 15 janv. 14:19 build.properties
drwxrwxr-x 2 flefevre flefevre 4096 27 mai   09:55 META-INF
-rw-rw-r-- 1 flefevre flefevre 3321 29 mai   11:58 org.eclipse.papyrus.uml.diagram.interactionoverview.tests.launch
-rw-rw-r-- 1 flefevre flefevre  737 15 janv. 14:19 pom.xml
drwxrwxr-x 3 flefevre flefevre 4096 15 janv. 14:19 src
drwxrwxr-x 5 flefevre flefevre 4096  1 juin  18:14 target
[flefevre@is227415 tests]$ ll ./junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence.tests/
total 60
-rw-rw-r-- 1 flefevre flefevre  1464 15 janv. 14:19 about.html
drwxrwxr-x 3 flefevre flefevre  4096  2 juin  11:16 bin
-rw-rw-r-- 1 flefevre flefevre   164 15 janv. 14:19 build.properties
drwxrwxr-x 2 flefevre flefevre  4096 15 janv. 14:19 META-INF
-rw-rw-r-- 1 flefevre flefevre  3182 27 mai   09:57 org.eclipse.papyrus.uml.diagram.sequence.tests.launch
drwxrwxr-x 3 flefevre flefevre  4096 15 janv. 14:19 OSGI-INF
-rw-rw-r-- 1 flefevre flefevre 22436 15 janv. 14:19 Papyrus-QAPlan.docx
-rw-rw-r-- 1 flefevre flefevre   726 15 janv. 14:19 pom.xml
drwxrwxr-x 3 flefevre flefevre  4096 15 janv. 14:19 src
drwxrwxr-x 5 flefevre flefevre  4096  1 juin  18:50 target
[flefevre@is227415 tests]$ ll ./junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.statemachine.tests/
total 32
-rw-rw-r-- 1 flefevre flefevre 1462 15 janv. 14:19 about.html
-rw-rw-r-- 1 flefevre flefevre  172 15 janv. 14:19 build.properties
drwxrwxr-x 2 flefevre flefevre 4096 15 janv. 14:19 META-INF
-rw-rw-r-- 1 flefevre flefevre 3186 15 janv. 14:19 org.eclipse.papyrus.uml.diagram.statemachine.test.launch
-rw-rw-r-- 1 flefevre flefevre  628 15 janv. 14:19 plugin.properties
-rw-rw-r-- 1 flefevre flefevre  730 15 janv. 14:19 pom.xml
drwxrwxr-x 3 flefevre flefevre 4096 15 janv. 14:19 src
drwxrwxr-x 5 flefevre flefevre 4096  1 juin  18:14 target
[flefevre@is227415 tests]$ ll ./junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.stereotypeproperty.tests/
total 44
-rw-rw-r-- 1 flefevre flefevre 1462 15 janv. 14:19 about.html
drwxrwxr-x 3 flefevre flefevre 4096 29 mai   13:24 bin
-rw-rw-r-- 1 flefevre flefevre  229 15 janv. 14:19 build.properties
drwxrwxr-x 2 flefevre flefevre 4096 12 mai   09:42 META-INF
-rw-rw-r-- 1 flefevre flefevre 2956 12 mai   13:36 org.eclipse.papyrus.diagram.stereotypeproperty.tests.launch
-rw-rw-r-- 1 flefevre flefevre  635 15 janv. 14:19 plugin.properties
-rw-rw-r-- 1 flefevre flefevre  701 11 mai   16:44 plugin.xml
-rw-rw-r-- 1 flefevre flefevre  736 15 janv. 14:19 pom.xml
drwxrwxr-x 2 flefevre flefevre 4096 15 janv. 14:19 resource
drwxrwxr-x 3 flefevre flefevre 4096 15 janv. 14:19 src
drwxrwxr-x 5 flefevre flefevre 4096  1 juin  18:14 target
[flefevre@is227415 tests]$ ll ./junit/plugins/uml/profile/org.eclipse.papyrus.uml.profile.drafter.tests/
total 40
-rw-rw-r-- 1 flefevre flefevre 1434 27 janv. 16:38 about.html
drwxrwxr-x 3 flefevre flefevre 4096 29 mai   17:07 bin
-rw-rw-r-- 1 flefevre flefevre  214 29 mai   11:58 build.properties
drwxrwxr-x 2 flefevre flefevre 4096 29 mai   11:58 META-INF
drwxrwxr-x 2 flefevre flefevre 4096 27 janv. 16:38 models
-rw-rw-r-- 1 flefevre flefevre  607 27 janv. 16:38 plugin.properties
-rw-rw-r-- 1 flefevre flefevre  510 17 mars  08:51 pom.xml
drwxrwxr-x 3 flefevre flefevre 4096 27 janv. 16:38 src
drwxrwxr-x 5 flefevre flefevre 4096  1 juin  18:50 target
drwxrwxr-x 3 flefevre flefevre 4096 27 janv. 16:38 test
[flefevre@is227415 tests]$ ll ./junit/plugins/uml/profile/org.eclipse.papyrus.uml.profile.drafter.tests/models/
house.profile.di        house.profile.notation  house.profile.uml       pets.profile.di         pets.profile.notation   pets.profile.uml        testProfile1.di         testProfile1.notation   testProfile1.uml
[flefevre@is227415 tests]$ ll ./junit/plugins/uml/profile/org.eclipse.papyrus.uml.profile.drafter.tests/models/
Comment 5 Francois Le Fevre CLA 2015-06-02 07:34:05 EDT
I have another question, I have seen that there is a button "Defaut style" on the properties tab when selecting an element from diagram.
Could you please tell me to which api it is linked?
Where is stored this default style?
Comment 6 Francois Le Fevre CLA 2015-06-08 08:27:37 EDT
I am currently still investigating, trying to find a share font...

I do not know the current Hudson OS, I have only found:
OS name: "linux", version: "3.0.101-0.46-default", arch: "amd64", family: "unix"

Here the full list of font available under CentOS 6.5 basic installation
(the one I have):

Abyssinica SIL:style=Regular
AR PL UMing CN:style=Light
AR PL UMing HK:style=Light
AR PL UMing TW MBE:style=Light
AR PL UMing TW:style=Light
Bitstream Charter:style=Bold
Bitstream Charter:style=Bold Italic
Bitstream Charter:style=Italic
Bitstream Charter:style=Regular
Caladea:style=Bold
Caladea:style=Bold Italic,Italic
Caladea:style=Italic
Caladea:style=Regular
Carlito:style=Bold
Carlito:style=Bold Italic
Carlito:style=Italic
Carlito:style=Regular
Century Schoolbook L:style=Bold
Century Schoolbook L:style=Bold Italic
Century Schoolbook L:style=Italic
Century Schoolbook L:style=Roman
Courier 10 Pitch:style=Bold
Courier 10 Pitch:style=Bold Italic
Courier 10 Pitch:style=Italic
Courier 10 Pitch:style=Regular
Cursor:style=Regular
DejaVu Sans,DejaVu Sans Condensed:style=Condensed Bold,Bold
DejaVu Sans,DejaVu Sans Condensed:style=Condensed Bold Oblique,Bold Oblique
DejaVu Sans,DejaVu Sans Condensed:style=Condensed,Book
DejaVu Sans,DejaVu Sans Condensed:style=Condensed Oblique,Oblique
DejaVu Sans,DejaVu Sans Light:style=ExtraLight
DejaVu Sans Mono:style=Bold
DejaVu Sans Mono:style=Bold Oblique
DejaVu Sans Mono:style=Book
DejaVu Sans Mono:style=Oblique
DejaVu Sans:style=Bold
DejaVu Sans:style=Bold Oblique
DejaVu Sans:style=Book
DejaVu Sans:style=Oblique
DejaVu Serif,DejaVu Serif Condensed:style=Condensed Bold,Bold
DejaVu Serif,DejaVu Serif Condensed:style=Condensed Bold Italic,Bold Italic
DejaVu Serif,DejaVu Serif Condensed:style=Condensed,Book
DejaVu Serif,DejaVu Serif Condensed:style=Condensed Italic,Italic
DejaVu Serif:style=Bold
DejaVu Serif:style=Bold Italic
DejaVu Serif:style=Book
DejaVu Serif:style=Italic
Dingbats:style=Regular
Fixed:style=Regular
Hershey\-Gothic\-English:style=Regular
Hershey\-Gothic\-German:style=Regular
Hershey\-Gothic\-Italian:style=Regular
Hershey\-Plain\-Duplex\-Italic:style=Regular
Hershey\-Plain\-Duplex:style=Regular
Hershey\-Plain\-Triplex\-Italic:style=Regular
Hershey\-Plain\-Triplex:style=Regular
Hershey\-Script\-Complex:style=Regular
Hershey\-Script\-Simplex:style=Regular
Jomolhari:style=Regular
Khmer OS Content:style=Regular
Khmer OS:style=Regular
Khmer OS System:style=Regular
Liberation Mono:style=Bold
Liberation Mono:style=Bold Italic
Liberation Mono:style=Italic
Liberation Mono:style=Regular
Liberation Sans:style=Bold
Liberation Sans:style=Bold Italic
Liberation Sans:style=Italic
Liberation Sans:style=Regular
Liberation Serif:style=Bold
Liberation Serif:style=Bold Italic
Liberation Serif:style=Italic
Liberation Serif:style=Regular
LKLUG:style=Regular
Lohit Assamese:style=Regular
Lohit Bengali:style=Regular
Lohit Devanagari:style=Regular
Lohit Gujarati:style=Regular
Lohit Kannada:style=Regular
Lohit Oriya:style=Regular
Lohit Punjabi:style=Regular
Lohit Tamil:style=Regular
Lohit Telugu:style=Regular
Madan:style=Regular
Meera:style=Regular
Nimbus Mono L:style=Bold
Nimbus Mono L:style=Bold Oblique
Nimbus Mono L:style=Regular
Nimbus Mono L:style=Regular Oblique
Nimbus Roman No9 L:style=Medium
Nimbus Roman No9 L:style=Medium Italic
Nimbus Roman No9 L:style=Regular
Nimbus Roman No9 L:style=Regular Italic
Nimbus Sans L:style=Bold
Nimbus Sans L:style=Bold Condensed
Nimbus Sans L:style=Bold Condensed Italic
Nimbus Sans L:style=Bold Italic
Nimbus Sans L:style=Regular
Nimbus Sans L:style=Regular Condensed
Nimbus Sans L:style=Regular Condensed Italic
Nimbus Sans L:style=Regular Italic
OpenSymbol:style=Regular
Padauk:style=Bold
Padauk:style=Regular
PakTypeNaqsh:style=Regular
PakTypeTehreer:style=Regular
Standard Symbols L:style=Regular
STIXGeneral:style=Bold
STIXGeneral:style=Bold Italic
STIXGeneral:style=Italic
STIXGeneral:style=Regular
Tibetan Machine Uni:style=Regular
UnDotum,은 돋움:style=Bold
UnDotum,은 돋움:style=Regular
Unikurd Web:style=Regular
URW Bookman L:style=Demi Bold
URW Bookman L:style=Demi Bold Italic
URW Bookman L:style=Light
URW Bookman L:style=Light Italic
URW Chancery L:style=Medium Italic
URW Gothic L:style=Book
URW Gothic L:style=Book Oblique
URW Gothic L:style=Demi
URW Gothic L:style=Demi Oblique
URW Palladio L:style=Bold
URW Palladio L:style=Bold Italic
URW Palladio L:style=Italic
URW Palladio L:style=Roman
Utopia:style=Bold
Utopia:style=Bold Italic
Utopia:style=Italic
Utopia:style=Regular
VL Gothic,VL ゴシック:style=regular
Waree:style=Bold
Waree:style=BoldOblique
Waree:style=Book
Waree:style=Oblique
[flefevre@is227415 ~]$