Feature #2074
Add a base font preference and default base font preference for chart rendering
Status: | Closed | Start date: | 03/24/2017 | |
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | - | % Done: | 100% |
|
Category: | Charts | Spent time: | - | |
Target version: | TXM 0.8.0 |
Description
Add font preference and default preference for chart rendering.
Currently the default font preference is set to "Lucida Sans Unicode" with a size of 11 pt for all OS.
Need to check that these default preferences works well on the three OS.
Validation tests (step 1)¶
- launch TXM fresh install
- go to Preferences\TXM\Advanced\Charts Engine
- you should have a "Change" button that opens a font selection popup
- click on it
- the popup must open with the Lucida font selected:
- on Windows and Mac => "Lucida Sans Unicode"
- on Linux => "Lucida Sans"
Validation tests (step 2)¶
These tests should be done on a Corpus using Unicode special range characters but at least on a Corpora containing accents.
- create some charts on Windows
- check the texts are well readable
- create some charts on OS X
- check the texts are well readable
- create some charts on Linux
- check the texts are well readable
If changes are needed, here is the location of the default preference: org.txm.chartsengine.core.preferences.ChartsEnginePreferences.initializeChartsEngineSharedPreferences(Preferences)
History
#1 Updated by Sebastien Jacquot almost 4 years ago
- Description updated (diff)
- % Done changed from 0 to 80
#2 Updated by Sebastien Jacquot almost 4 years ago
- Description updated (diff)
#3 Updated by Sebastien Jacquot over 2 years ago
- Target version changed from TXM 0.8.0a (split/restructuration) to TXM 0.8.0
#4 Updated by Sebastien Jacquot about 2 years ago
- Status changed from New to Feedback
- on Linux JFace doesn't load the Java embedded fonts so a manual loading has been added at TXM start
- the font has been set to Lucida Sans for Linux and Lucida Sans Console for Windows and Mac
It seems there is a bug in SWT/JFace under Linux that doesn't load the JVM embedded fonts in JFace. A manual loading has been added at TXM start for Linux. Then the default font is set this way:
// Check the target OS and set the default font from the JVM embedded font String defaultFont; if(OSDetector.isFamilyUnix()) { defaultFont = "1|Lucida Sans|11.0|0|GTK|1|"; //$NON-NLS-1$ other version: "1|Lucida Sans|11|0" } else { defaultFont = "1|Lucida Sans Unicode|11.0|0|WINDOWS|1|-16|0|0|0|400|0|0|0|0|3|2|1|34|Lucida Sans Unicode;"; //$NON-NLS-1$ }
Is seems the fonts are well loaded on Win and Mac.
#5 Updated by Sebastien Jacquot about 2 years ago
- Description updated (diff)
#6 Updated by Sebastien Jacquot about 2 years ago
- Description updated (diff)
#7 Updated by Sebastien Jacquot almost 2 years ago
- Status changed from Feedback to Closed
- % Done changed from 80 to 100
SJ: tested on Win: OK