[Interest] Qt5 font size issue with fontconfig
Ramakanth Kesireddy
rama.kesi at gmail.com
Sat Nov 7 09:28:50 CET 2020
Ok Thanks for your mail. Forgot to mention that Qt UI is based on
QWidgets(QPainter) with unicodes.
Is this the reason why auto scale attribute doesn't works and need to use
QFontmetrics to set point size for the DPI accordingly?
Best Regards,
Ramakanth
On Fri, 6 Nov, 2020, 21:08 Thiago Macieira, <thiago.macieira at intel.com>
wrote:
> On Friday, 6 November 2020 05:00:15 PST Ramakanth Kesireddy wrote:
> > Is there any formula to calculate the font size in point size based on
> dpi
> > display which would work for all display sizes or just setting point size
> > would help?
>
> Officially:
>
> size in inches = size in points / 72 * dots-per-inch
>
> In practice, most display systems do not obey the actual DPI setting.
>
> --
> 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/20201107/6611004f/attachment.html>
More information about the Interest
mailing list