Task #3370

Charts, improve unicode characters display compatibility whatever the operating system

Ajouté par Sebastien Jacquot il y a plus de 2 ans. Mis à jour il y a plus d'un an.

Statut:Feedback Début:13/04/2023
Priorité:Normal Echéance:
Assigné à:- % réalisé:

70%

Catégorie:Charts Temps passé: -
Version cible:TXM 0.8.4

Description

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 chosen because they were embedded in the JVM on all 3 OS but also manage russian characters.

NOTE: It seems "Lucida Sans" doesn't work anymore in Ubuntu, another font 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.

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: 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 typical physical font names as aliases, e.g. Times, Arial, Courrier to ease user understanding of the choices available
  • add autocompletion in fonts combo box
  • in charts engine preference page
    • for the 'Font/Police' preference use a simple combo box with only user-friendly font names
    • add a new preference for each user-friendly font name with a combo box to list all the physical fonts + 'default' (to use the default system font)

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)

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

Historique

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

  • Description mis à jour (diff)

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

  • Description mis à jour (diff)

#3 Mis à jour par Serge Heiden il y a plus de 2 ans

For solution

"in the combo box, instead of "Serif, SansSerif, Monospaced, Dialog or DialogInput" use the base physical font name, e.g. Times, Arial, Courrier"

it is more

"in the combo box, instead of "Serif, SansSerif, Monospaced, Dialog or DialogInput" use typical physical font names as aliases, e.g. Times, Arial, Courrier to ease user understanding of the choices available"

#4 Mis à jour par Serge Heiden il y a plus de 2 ans

  • Sujet changé de Charts, improve unicode characters compatibilty despite of the operating system à Charts, improve unicode characters display compatibility whatever the operating system

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

  • Description mis à jour (diff)
  • Statut changé de New à Feedback
  • % réalisé changé de 0 à 70

#6 Mis à jour par Serge Heiden il y a plus de 2 ans

  • Description mis à jour (diff)

#7 Mis à jour par Sebastien Jacquot il y a plus d'un an

  • Version cible changé de TXM 0.8.3 à TXM 0.8.4

Formats disponibles : Atom PDF