[Interest] Qt5 font size issue with fontconfig

Ramakanth Kesireddy rama.kesi at gmail.com
Sun Nov 15 08:11:10 CET 2020


Thanks a lot for your mail. It helps.
Essentially moved https://doc.qt.io/qt-5/stylesheet-reference.html#font-prop
from pixels to points and fixed the hardcoded layouts.
Adjusting the QT_AUTO_SCREEN_SCALE_FACTOR and QT_FONT_DPI to scale
ccordingly.

On Wed, Nov 11, 2020 at 11:51 PM Thiago Macieira <thiago.macieira at intel.com>
wrote:

> On Wednesday, 11 November 2020 09:24:14 PST Ramakanth Kesireddy wrote:
> > Inorder to adjust across all the screens, do I need to set export
> > QT_AUTO_SCREEN_SCALE_FACTOR=1?
>
> Yes. Or set the QT_SCREEN_SCALE_FACTORS variable. Or both, or set the AUTO
> one
> to 0. They interact in weird and sometimes counter-intuitive ways.
>
> On my laptop, I have:
> QT_AUTO_SCREEN_SCALE_FACTOR=0
> QT_SCREEN_SCALE_FACTORS=2;2
>
> And X was is started with the command-line option "-dpi 216".
> --
> Thiago Macieira - thiago.macieira (AT) intel.com
>   Software Architect - Intel DPG Cloud Engineering
>
>
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> https://lists.qt-project.org/listinfo/interest
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20201115/71d3116c/attachment.html>


More information about the Interest mailing list