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”!
You are not logged in. Please login or register.
QElectroTech → FR : Aide, suggestions, discussions, ... → 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”!
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
You're not living up to your name at the moment:
It looks like, you did not read the last few posts in this thread!
FYI, 2018-11-28
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
.
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
Free software should only use free "ingredients"!
Therefore:
We are on a very good way to solve this age-old problem!
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"
@plc-user, no need, I think just change default font settings hard coded in the code, look: generalconfigurationpage.*
But it doesn't hurt to have such a script...
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 --> ???
But it doesn't hurt to have such a script...
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?
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!
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.
QElectroTech → FR : Aide, suggestions, discussions, ... → Taille caractères
Powered by PunBB, supported by Informer Technologies, Inc.
Generated in 0.025 seconds (30% PHP - 70% DB) with 12 queries