PDA

View Full Version : Any cross-platform way to use a bitmap font file with Qt ? (or not cross-platform)



jokoon
10th November 2010, 21:43
I'm using QScintilla, and I'd like to use ProFont as an only font, and since I'm planning to make a image zoom rather than a vector-ish zoom of the font (I know that seems stupid, but I want to make my editor this way), I want to use a bitmap font, and Qt doesn't support them (QFont is told to only support ttf for now).

Are they non-official libraries that enable Qt to use bitmap fonts ? (Windows and/or Linux/Mac) ?

Vadim
11th November 2010, 00:31
Bitmap fonts should work just fine.

QFont::setStyleHint (..., QFont::PreferBitmap);