trialuser02 / qt6ct

Qt6 Configuration Tool
BSD 2-Clause "Simplified" License
128 stars 10 forks source link

Why store the font type in that format? #19

Closed tio-trom closed 1 year ago

tio-trom commented 1 year ago

Let me make it brief, we have a custom distro (TROMjaro) based on XFCE (gtk) and we use QT5CT and QT6CT to sync the themes and fonts and all that. All works great, except for the font. So we look for a way to sync the font as well. The main way for qt6/5ct is via the config file in the .config folder. But you guys are storing the font as https://github.com/desktop-app/qt5ct/blob/9f60cd2352a4dcc55c8ca267f29bd8fff5c6a659/src/qt5ct/fontspage.cpp#L61 - you convert it via C++ I think into a format that is hard to read and convert into.

First, I am wondering why did you choose that and are you willing to store the font in a readable way? Like: Ubuntu Condensed, 13 for instance. We have scripts that check the desktop theme and icon set, and replace them in the qt5/6ct config file, but we cannot do the same for the font since the qt5/6ct config file only accepts that converted format.

Second, is there a way via the command line to change the font for QT? This we can implement into the script perhaps.

Thank you in advance!