How to find out which CSS generic font-family a QFont belongs to?
-
Given a QFont object, how can I find out if it's a serif, sans-serif, or monospace font?
QFont::styleHint() only returns the hint set specifically to the font. It doesn't work with font selected with the font panel for example.
-
Stephen, did you ever find a way to do this?
That's the main deficiency of basic QFont / CSS Font specification encoding/decoding functions I devised and shared. See this thread: QFont support for CSS Font spec encoding? ... http://qt-project.org/forums/viewthread/47421/