Task #3370

Mis à jour par Sebastien Jacquot il y a plus de 2 ans

For information, current default fonts used when creating a new chart are :
* - Linux: Lucida Sans
* - Windows: Lucida Sans Unicode
* - Mac OS: Lucida Sans Unicode

These fonts were This font was chosen because they were embedded in the JVM it was present on all 3 OS but also manage russian characters.

NOTE: It seems "Lucida Sans" doesn't work anymore in Ubuntu, another font police is used since "Lucida Sans" is not found.

Since Java offers some logical fonts, it would be better to use them to improve support of different extended unicode character ranges regardless of operating system.

h3. Solutions/First proposals

* - use one of the predefined logical font as default (Serif, SansSerif, Monospaced, Dialog or DialogInput) instead of a physical font
*


-
in the advanced chart editor tool bar, list only the logical fonts and find a way to access the physical font in another place (e.g. in a preference page)
* or: or
-
in the advanced chart editor tool bar, list the logical fonts first then the physical fonts
*


-
in the combo box, instead of "Serif, SansSerif, Monospaced, Dialog or DialogInput" use the base physical font name, e.g. Times, Arial, Courrier (need to check which font is used on each OS)
*


-
add autocompletion in fonts combo box

h3. Implemented solution

* added a combo box with user-friendly font name "Arial", "Courier", "Times" matching to logical AWT fonts: "SansSerif", "Monospaced", "Serif"
* set charts engine default font preference as "SansSerif"/"Arial", size of 14, regular style
* added another combo box only visible in expert mode to list all the fonts (logical and physical)
* removed the SWT default font selector in charts engine preference page
* added a simple combo box with only user-friendly font names in charts engine preference page

*//TODO:
need to validate or define the charts engine default font preference (font, size, style)*

h3. Validation tests

* test and potentially adjust the preferences (font, size, style) according to how the charts look and are well readable in the 3 operating systems


Retour