When would QFontInfo::exactMatch() ever return false?
-
QFont represents the font you would like and QFontInfo represents the actual system font which you'll get. As such, the font QFontInfo refers to must exist, so wouldn't its exactMatch() method always return true? If it is capable of returning false, when would that happen?
-
Program may ask specific font characteristics. If those characteristics does not match with exact drawing, QFontInfo return false. QFontInfo object returns the values that apply to the font that will actually be used to draw the text. On Desktop you may not see much difference. May be it plays good role in Embedded Platform.
Hope you have referred QFontInfo class details in QtAssistant.