[Interest] Getting the canonical / preferred name of a font

Marcel Gotsch marcel.gotsch at native-instruments.com
Fri Dec 5 13:50:29 CET 2025


Hello there,

is there an API to determine the preferred name of a font, i.e.
Roboto-Black is actually part of Roboto. We noticed that Qt reports
different font family names when loading Roboto-Black on Windows (reports
Roboto-Black) vs Mac (reports Roboto). It is possible to use it by creating
a QFont with just Roboto and the corresponding font weight, but how can we
know that those belong to the same family?

Thanks in advance!

Best regards,
Marcel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20251205/1230197f/attachment.htm>


More information about the Interest mailing list