[Interest] Qt5 font size issue with fontconfig

Thiago Macieira thiago.macieira at intel.com
Sat Oct 31 22:50:17 CET 2020


On Saturday, 31 October 2020 04:34:08 PDT Ramakanth Kesireddy wrote:
> Hi,
> 
> After porting the Qt 4.8 application to Qt 5.6.3 on embedded Linux(Yocto)
> with fontconfig, the font sizes appear larger on target.
> 
> The Qt 4.8 application font size setting with 14pt default font appears
> larger in Qt 5.6.3 with fontconfig and needed fonts added in default
> fontconfig directory /usr/share/fonts.
> The dpi of the device is 141.
> 
> Do I need to reduce the font size pt or set any environment variable scale
> factor so that text appears normal?

Most likely, Qt 5 is displaying the fonts correctly and Qt 4 isn't because Qt 
4 didn't support HighDPI.

In other words, the bug that existed has been fixed. If your UX people thing 
it's too bug, then reduce the size.

Also, upgrade to at least 5.12.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel DPG Cloud Engineering





More information about the Interest mailing list