View Single Post
Old 01-03-2013, 03:51 PM   #24
sergeyvl12
ebook fan
sergeyvl12 ought to be getting tired of karma fortunes by now.sergeyvl12 ought to be getting tired of karma fortunes by now.sergeyvl12 ought to be getting tired of karma fortunes by now.sergeyvl12 ought to be getting tired of karma fortunes by now.sergeyvl12 ought to be getting tired of karma fortunes by now.sergeyvl12 ought to be getting tired of karma fortunes by now.sergeyvl12 ought to be getting tired of karma fortunes by now.sergeyvl12 ought to be getting tired of karma fortunes by now.sergeyvl12 ought to be getting tired of karma fortunes by now.sergeyvl12 ought to be getting tired of karma fortunes by now.sergeyvl12 ought to be getting tired of karma fortunes by now.
 
Posts: 543
Karma: 2516376
Join Date: Dec 2010
Device: PocketBook 301+, Kindle 3 Wi-Fi, Onyx Boox A62, Kindle Touch
Quote:
Originally Posted by koenieee View Post
Yes, that would be great!
Could you tell me how you set your font in qt?

I use this: QApplication::setFont(QFont("Georgia", 12));
and the QFontDatase gives Georgia as a installed font, but still I get squares as text
I don't use "Georgia"... I don't use any Kobo ttf font. I use "Djvu Sans" font that distributed with qt.

As I've mentioned earlier, the way to specify a directory with fonts in Qt embedded is:

export QT_QWS_FONTDIR=<dir with your fonts>
./program

Tomorrow I'll try to add "Georgia" font to my font directory and select it in application.

Quote:
Originally Posted by koenieee
but still I get squares as text
On latin characters or on some national characters?
sergeyvl12 is offline   Reply With Quote