Font size control  

This forum is dedicated to Autopano Pro / Giga bug reports and features discussion.
Please read the posting rules before starting a topic!
User avatar
DrSlony
Moderator
 
Topic author
Posts: 1893
Likes: 0 post
Liked in: 0 post
Joined: Sat Nov 03, 2007 6:30 pm
Location: Sweden
Info

Font size control

by DrSlony » Sun Nov 29, 2015 5:58 pm

Hello

Using Autopano Giga 4.2.2 in "Awesome" (a minimalistic window manager), the default font size if far too huge, and I cannot find a way of changing it. Usually the font in programs depends on the DPI the X server uses (for example "xrandr --dpi 96"), but ./AutopanoGiga.sh seems to ignore it, as changing it makes no difference on font size. As such, I can't find any way of changing the font size used by it.
http://i.imgur.com/HCiYNiB.png

Please explain where APG gets its font size from so that user may change it.

P.S. I have Qt-4.8.6 and Qt-5.5.1 compiled and programs which use them have a decently small font.
Qt5 example http://i.imgur.com/cVv90p1.png
Qt4 example http://i.imgur.com/DCNNFhL.png

User avatar
AntoineM
Moderator
 
Posts: 88
Likes: 0 post
Liked in: 2 posts
Joined: Sun Apr 21, 2013 6:43 pm
Info

Re: Font size control

by AntoineM » Sun Nov 29, 2015 10:04 pm

Hello DrSlony,

I am using "Awesome" too and I do not experience the same problem.
Can you check you are able to change the font size using the qtconfig executable?
This will affect all your Qt-based programs but it could be a workaround until we find the solution.

Regards,
Antoine

User avatar
DrSlony
Moderator
 
Topic author
Posts: 1893
Likes: 0 post
Liked in: 0 post
Joined: Sat Nov 03, 2007 6:30 pm
Location: Sweden
Info

Re: Font size control

by DrSlony » Mon Nov 30, 2015 4:37 pm

Hey

qtconfig is only part of Qt4, while APG-4.2.2 uses Qt5.
Ref: http://unix.stackexchange.com/questions ... t-5#127673

As I see it, APG is assumed to correctly detect the desktop environment and get its settings from it. When that fails, as it does in my case, it has no safe fallback or manual override. I checked all
~/.local/share/Kolor/Autopano Giga 4.2/Kolor/UI/style_sheet*
files and none of them have a font size.

If I copy
~/.local/share/Kolor/Autopano Giga 4.2/Kolor/UI/style_sheet.qss
to
~/.local/share/Kolor/Autopano Giga 4.2/User/UI/style_sheet.qss
and add
Code: Select all
* {
font-size: 12px;
}

that makes the font smaller.
http://i.imgur.com/iekP1YO.png
It would look nicer if I could change the font hinting/sub-pixel rendering but I don't know whether that's possible from the QSS file. It's probably hard-coded in APG.

Another option, without the user-edited qss file as described above, is this:
QT_STYLE_OVERRIDE=gtk ./AutopanoGiga.sh
though ideally AutopanoGiga.sh should detect my desktop and DPI correctly. Keep in mind that all the rest of my Qt4, Qt5, Gtk2 and Gtk3 programs use the same font size, while APG does not.

P.S. I tried the following other parameters to QT_STYLE_OVERRIDE but they made no difference: gtk2, gtk3, kde, kde4, kde5, breeze.


Who is online

Users browsing this forum: No registered users and 4 guests