[Interest] Qt5 font size issue with fontconfig

Florian Bruhin me at the-compiler.org
Thu Nov 12 11:07:55 CET 2020


On Thu, Nov 12, 2020 at 10:01:23AM +0000, Hamish Moffatt wrote:
> 
> 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.

Ah, right, sorry :)

You can (at least according to the docs) specify other sizes in em or ex
(i.e. relative to the font size) though.

Florian

-- 
me at the-compiler.org (Mail/XMPP) | https://www.qutebrowser.org 
       https://bruhin.software/ | https://github.com/sponsors/The-Compiler/
       GPG: 916E B0C8 FD55 A072 | https://the-compiler.org/pubkey.asc
             I love long mails! | https://email.is-not-s.ms/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20201112/606a289d/attachment.sig>


More information about the Interest mailing list