HTML font family with QTextCursor on Android
Unsolved
Mobile and Embedded
-
Hi,
My program run on Mac OS X and Android. I use an HTML model and a CSS stylesheet to create a document with QTextCursor.
In my stylesheet I use this line :td { font: 12px "Comic Sans MS"; }
With Mac OS X, I don’t have problem with font family (i.e : Comic sans MS, Verdana, …). But with Android, this attribute doesn’t work.
Too, I try with only
td { font-family: "Comic Sans MS"; }
But here, the font-family doesn’t work on Mac OS X and Android.
Do you notice this problem too ?
Bye,
Charlie
-
Hi,
You should check the QFontDatabase class. With it you should be able to enumerate the fonts from a given platform.