Fallback added for fonts - comments?
BogDan
bog_dan_ro at yahoo.com
Sat Jun 25 19:18:31 CEST 2011
Great !
Thanks !
BogDan
----- Original Message -----
> From: Espen Riskedal <espen at cutehacks.com>
> To: necessitas-devel at kde.org
> Cc:
> Sent: Saturday, June 25, 2011 8:13 PM
> Subject: Fallback added for fonts - comments?
>
>G ot 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
> _______________________________________________
> Necessitas-devel mailing list
> Necessitas-devel at kde.org
> https://mail.kde.org/mailman/listinfo/necessitas-devel
>
More information about the Necessitas-devel
mailing list