26

Re: Taille caractères

The implementation of texts and fonts is not finished in dxf2elmt.
That is why the font selection can still be described as hardcoded and “temporary”!

Fragen zu QET gehören in dieses Forum und werden nicht per PM beantwortet! – Questions regarding QET belong in this forum and will NOT be answered via PM! – Les questions concernant QET doivent être posées sur ce forum et ne seront pas traitées par MP !

27

Re: Taille caractères

FR
Vous devez utiliser une police générale pour trois systèmes.
Linux/GNU , MacOS, Windows

Vous pouvez également inclure le fichier de police dans le répertoire QET.
D'autres programmes de dessin font de même.
comme arial.ttf


EN
You must use a general font for three systems.
Linux/GNU , MacOS, Windows

You can also include the font file in the QET directory.
Other drawing programs do the same.
like arial.ttf

I am an pre-retired industrial developer technician and born in 1960

28

Re: Taille caractères

You're not living up to your name at the moment:  nomicons/wink
It looks like, you did not read the last few posts in this thread!

Fragen zu QET gehören in dieses Forum und werden nicht per PM beantwortet! – Questions regarding QET belong in this forum and will NOT be answered via PM! – Les questions concernant QET doivent être posées sur ce forum et ne seront pas traitées par MP !

29

Re: Taille caractères

FYI, 2018-11-28

Nuri wrote:
scorpio810 wrote:

Attention donc avec certaines polices exotiques, certains y trouverons leur compte pour embellir leurs schémas, hein Nuri...

J'utilise la police Arimo car elle ne pose aucun problème sous Linux, est libre et a exactement la même métrique qu'Arial.

sudo apt install fonts-croscore

.

Quand j'utilise Arial directement sous Linux, je sais pas pourquoi mais QET me met tous les textes en Arial Bold nomicons/pinch .
J'ai pas trouvé d'où cela venait, aucune idée...

Par contre, quand je livre un fichier *.qet à ma clientèle sous Windows, je remplace "Arimo" par "Arial" avec XML Copy Editor.

Moi ce qui m'intéresse, c'est qu'on puisse utiliser une police qui ait le même rendu sous tous les OS pour éviter les décalages et les empiètements qui font dégueulasse et qui rendent certains textes illisibles.
L'idéal serait que QET embarque une petite panoplie de polices libres avec lui et puisse les déployer indépendamment de l'OS.
Disons une petites dizaines de polices, ca devrait largement suffire.

Et pour ceux qui ont besoin de plus, on leur permet de faire des surcharges en utilisant les polices installées dans l'OS en question, comme actuellement avec les options de police implémentées par Laurent.

https://qelectrotech.org/forum/viewtopi … 8828#p8828

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."Questions regarding QET belong in this forum and will NOT be answered via PM! – Les questions concernant QET doivent être posées sur ce forum et ne seront pas traitées par MP !

30 (edited by plc-user 2025-03-15 14:08:27)

Re: Taille caractères

Free software should only use free "ingredients"!

Therefore:
We are on a very good way to solve this age-old problem!

Fragen zu QET gehören in dieses Forum und werden nicht per PM beantwortet! – Questions regarding QET belong in this forum and will NOT be answered via PM! – Les questions concernant QET doivent être posées sur ce forum et ne seront pas traitées par MP !

31 (edited by plc-user 2025-03-15 14:57:28)

Re: Taille caractères

For the time of the changeover to ‘Liberation Sans’ as default-font:
Should we give our win users the option to change the default font to ‘Liberation Sans’ in the registry?
This could be done with a *.bat, *.cmd or *.reg file, I think...

EDIT:
This should be it:

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\QElectroTech\QElectroTech]
"diagramitemfont"="Liberation Sans"
"diagramitemsize"=dword:00000009
"diagramitemstyle"="Regular"
"diagramitemweight"=dword:00000032


[HKEY_CURRENT_USER\Software\QElectroTech\QElectroTech\diagrameditor]
"dynamic_text_font"="Liberation Sans,9,-1,5,50,0,0,0,0,0,Regular"
"independent_text_font"="Liberation Sans,9,-1,5,50,0,0,0,0,0,Regular"

Fragen zu QET gehören in dieses Forum und werden nicht per PM beantwortet! – Questions regarding QET belong in this forum and will NOT be answered via PM! – Les questions concernant QET doivent être posées sur ce forum et ne seront pas traitées par MP !

32

Re: Taille caractères

@plc-user, no need, I think just change default font settings hard coded in the code, look: generalconfigurationpage.*

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."Questions regarding QET belong in this forum and will NOT be answered via PM! – Les questions concernant QET doivent être posées sur ce forum et ne seront pas traitées par MP !

33

Re: Taille caractères

But it doesn't hurt to have such a script...  nomicons/wink

We need to inform the users, that we provide default-fonts for all systems from date x.
And we should also point out that the font should be chosen if users are thinking about or relying on cross-system data exchange.

Do we need to adjust the Elements-Collection, too?
This could be done with a small script, but we would need to agree on which fonts to replace with which others:
Sans Serif or Arial --> Liberation Sans
Serif or Times New Roman --> Liberation Serif
MS Shell Dlg --> ???

Fragen zu QET gehören in dieses Forum und werden nicht per PM beantwortet! – Questions regarding QET belong in this forum and will NOT be answered via PM! – Les questions concernant QET doivent être posées sur ce forum et ne seront pas traitées par MP !

34

Re: Taille caractères

plc-user wrote:

But it doesn't hurt to have such a script...  nomicons/wink

We need to inform the users, that we provide default-fonts for all systems from date x.
And we should also point out that the font should be chosen if users are thinking about or relying on cross-system data exchange.

Do we need to adjust the Elements-Collection, too?
This could be done with a small script, but we would need to agree on which fonts to replace with which others:
Sans Serif or Arial --> Liberation Sans
Serif or Times New Roman --> Liberation Serif
MS Shell Dlg --> ???



It makes sense to ensure cross-system compatibility by providing a default free font that behaves consistently across Linux, MacOS, and Windows. Using Liberation Sans as the default is a solid choice since it closely matches Arial while being open-source.

Regarding implementation, hardcoding the default font settings in generalconfigurationpage.* seems like the simplest and most reliable approach. However, having an optional script to modify registry settings for Windows users could still be useful, especially for those who prefer manual control over font settings.

Additionally, updating the Elements Collection to align with the new defaults is a good idea to prevent inconsistencies. Defining clear replacement rules (e.g., Sans Serif → Liberation Sans, Times New Roman → Liberation Serif) would help standardize the transition.

Would it make sense to include these font settings in a configuration file instead, so users can override them without modifying the registry or code directly?

35 (edited by plc-user 2025-03-21 12:03:04)

Re: Taille caractères

In preparation for the integration of the Liberation fonts in QET, I have updated the element collection.
In doing so, I converted the fonts of the elements to the Liberation substitution as good as possible. Until now there are no elements, which use osifont. The elements have also been tidied up a little.
As long as the fonts are not yet integrated into QET (the PR is still missing), the elements are only available in my github account for the time being.
As soon as the fonts for all systems are available in QET, the elements will be moved to the official collection.
Until then, the elements can be tested by users who have installed the Liberation fonts on their system anyway.
Objective feedback is welcome!


BTW:
It is possible but not needed, to edit the registry directly!
Changing the font-settings in configuration-page will do it for you!

Fragen zu QET gehören in dieses Forum und werden nicht per PM beantwortet! – Questions regarding QET belong in this forum and will NOT be answered via PM! – Les questions concernant QET doivent être posées sur ce forum et ne seront pas traitées par MP !

36

Re: Taille caractères

I can only agree with OllyBe, it's a good and correct step for the further development of Qelectrotech.

I took a quick look at some elements. From what I've seen, the appearance and positioning of the text are fine.

Thanks for your work, plc-user.