Community
Participate
Working Groups
The Font used in a Tree Editor doesn't seem to be the "standard" Eclipse Font - e.g. it's different from how a standard EMF Tree Editor looks like. Saw this on Linux; not tested on Win, but probably same problem. Let me know if this bug isn't clear enough (will post screenshot if needed).
Created attachment 241817 [details] Screenshot Sirius Tree and EMF editor
Hi, thanks for the report! I've attached a screenshot that shows the difference between the Sirius Tree Editor and the EMF one.
Created attachment 251101 [details] Table and tree on Mac OS X I observe the same issue on Mac OS X
Created attachment 251103 [details] Sample Tree and Tables to see the issue Steps to reproduce: . Unzip the attached test case. . Open the session . Open the existing table, cross table and tree. . See the font size.
Moving out of the 4.0 scope for now, along with all the other issues which were there "by default". This does not mean some of these will not be re-integrated at some point, but for now these issues are not part of the roadmap for 4.0. If you feel strongly about this removal from 4.0 and/or are ready to sponsor the corresponding work, feel free to comment.
Note that if DTreeItemLabelProvider.getFont(Object) returns null we get the correct (standard) font. However because this can be customized in the VSM, each TreeItemDescription has a TreeItemStyle with explicit font size and format, and we use that the compute the font to use. We could set different defaults in the VSM (in particular the size), but this would still be "hard-coded" at specification time in the VSM, and may not match the runtime users' choice of default font size. There is no way currently to configure a TreeItemStyle to say "use whichever size is the standard font size at runtime". I'm not sure it would be the right approach, but such an option could be added either: * to each individual TreeItemStyle; * to the whole Tree (maybe making it the default, requiring opt-in from the specifier to declare "I will need custom fonts, so please don't ignore the sizes I set in the TreeItemStyles"); * or maybe even as a user preference (something like "Sirius > Sirius Tree > [ ] Always use standard font size" (this is not that different from browser preferences to always use user-defined fonts instead of the ones requested by each page).
New Gerrit change created: https://git.eclipse.org/r/90510
The first step done regarding this ticket is to use a preference "Always use standard font size" that will allows to use environment font size instead of the one defined in the VSM when checked. By default this option is not checked. This option only handle font size override. For later, we can consider doing modification in the VSM editor to be able to specify for TreeItemStyle a value like 0 or -1 or no value to tells Sirius to use runtime font height when displaying tree items. We also can consider doing a mechanism allowing to use the runtime font as well as font height.
Gerrit change https://git.eclipse.org/r/90510 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=b1d79cd38c1b793cb5963ffa5242a7ffe725c0f2
Fixed by b1d79cd38c1b793cb5963ffa5242a7ffe725c0f2, which adds a user preference to ignore custom font sizes that may be defined in the VSM to use the default Eclipse one.
New Gerrit change created: https://git.eclipse.org/r/93199
Gerrit change https://git.eclipse.org/r/93199 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=f964c82901f4e7df6e46682c399b497ebfecfa90
New Gerrit change created: https://git.eclipse.org/r/93851
Gerrit change https://git.eclipse.org/r/93851 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=698acebb42e45c6460bea2cdb16cd1692ef6050e
Validated with Sirius 5.0.0.201705121003
Verified by Jessy.
New Gerrit change created: https://git.eclipse.org/r/98904
Gerrit change https://git.eclipse.org/r/98904 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=486aa273b3383d35ccfb8cbea4f09f28635a370c
Available in Sirius 5.0.0, see https://wiki.eclipse.org/Sirius/5.0.0 for details.