Feature #2074

Add a base font preference and default base font preference for chart rendering

Ajouté par Sebastien Jacquot il y a presque 2 ans. Mis à jour il y a 2 mois.

Statut:Feedback Début:24/03/2017
Priorité:Normal Echéance:
Assigné à:- % réalisé:

80%

Catégorie:Charts Temps passé: -
Version cible: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)

Historique

#1 Mis à jour par Sebastien Jacquot il y a presque 2 ans

  • Description mis à jour (diff)
  • % réalisé changé de 0 à 80

#2 Mis à jour par Sebastien Jacquot il y a presque 2 ans

  • Description mis à jour (diff)

#3 Mis à jour par Sebastien Jacquot il y a 8 mois

  • Version cible changé de TXM 0.8.0a (split/restructuration) à TXM 0.8.0

#4 Mis à jour par Sebastien Jacquot il y a 2 mois

  • Statut changé de New à Feedback
New related developments/information:
  • 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 Mis à jour par Sebastien Jacquot il y a 2 mois

  • Description mis à jour (diff)

#6 Mis à jour par Sebastien Jacquot il y a 2 mois

  • Description mis à jour (diff)

Formats disponibles : Atom PDF