Re: [Interest] Qt5 font size issue with fontconfig
On Thu, Nov 12, 2020 at 10:01:23AM +, Hamish Moffatt wrote: > > On 12/11/20 8:47 pm, Florian Bruhin wrote: > > On Thu, Nov 12, 2020 at 12:37:33AM +, 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 -- m...@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/ signature.asc Description: PGP signature ___ Interest mailing list Interest@qt-project.org https://lists.qt-project.org/listinfo/interest
Re: [Interest] Qt5 font size issue with fontconfig
On 12/11/20 8:47 pm, Florian Bruhin wrote: On Thu, Nov 12, 2020 at 12:37:33AM +, 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 ___ Interest mailing list Interest@qt-project.org https://lists.qt-project.org/listinfo/interest
Re: [Interest] Qt5 font size issue with fontconfig
On Thu, Nov 12, 2020 at 12:37:33AM +, 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." Florian -- m...@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/ signature.asc Description: PGP signature ___ Interest mailing list Interest@qt-project.org https://lists.qt-project.org/listinfo/interest