[Qt-interest] Qt does not provide a way to get a font's "em" size?

Nikos Chantziaras realnc at arcor.de
Thu Mar 4 15:01:53 CET 2010


I need to get the "em" size of fonts.  This is a design property of 
scalable fonts.  QFontInfo and QFontMetrics don't seem to offer this 
information and I would have to use FreeType directly to query it 
(QFont::freetypeFace()).  That's not a good solution here since the 
application needs to stay cross platform and still be able to get the em 
size.

Is there any portable solution within Qt to get to that information?



More information about the Qt-interest-old mailing list