[Interest] Qt5 font size issue with fontconfig
Hamish Moffatt
hamish at risingsoftware.com
Thu Nov 12 11:01:23 CET 2020
On 12/11/20 8:47 pm, Florian Bruhin wrote:
> On Thu, Nov 12, 2020 at 12:37:33AM +0000, Hamish Moffatt wrote:
>> On 12/11/20 2:46 am, Thiago Macieira wrote:
>>> NEVER calculate font sizes in pixels. Your design is wrong. Delete this
>>> function and use point sizes throughout.
>> Too bad the Qt Widget stylesheet function only supports point sizes for
>> fonts.
> Not sure what makes you think so:
> https://doc.qt.io/qt-5/stylesheet-reference.html#font-prop
> "The font size. In this version of Qt, only pt and px metrics are
> supported."
>
What I meant was ONLY font sizes can be specified in points. Other
dimensions (max-height for example) can't be specified in pt.
Hamish
More information about the Interest
mailing list