Solved qfont different sizes for fonts
-
in an app i've added comboboxes for font family and font size. but some fonts support only limited set of sizes. how can i deal with this? how can i check whether the changed size (from combo box) is available for the current font set?
thanks
-
Hi,
Do you have an example of such a font ?
-
Hi
Also what platform and Qt version ?There is
QFontDatabase::isScalable
and
bool QFontDatabase::isSmoothlyScalable -
qt4 on linux
an example of such font is lucida typewriter, console (only 1 size), fangsong ti, nsc fixed
EDIT: probably a better question to ask is: how can i get available sizes for a particular font?