Fallback added for fonts - comments?

Espen Riskedal espen at cutehacks.com
Sat Jun 25 19:13:20 CEST 2011


Got fonts rendering again on the S2.

It turns out that in QFontDatabase::findFont(...), in
qfontdatabase_qpa.cpp, the match(...) function will never find any
hits since the family we search for is "Helvetica" or something
similar. By default, very few Qt apps will look for "Droid Sans" :) As
a partial solution, we've implemented the fallbacksForFamily(...) in
the Android QPA plugin to return "Droid Sans Fallback", this ensures
we have some sort of font to render. Ideally we'd find a list of fonts
(their family names) that we know are shipped with all the Android
devices we aim to support.

Diff: http://t.co/cdShpXz
Image or it didn't happen: http://t.co/wNs3Hhp

cheers
espen and marius


More information about the Necessitas-devel mailing list