[cairo] utf8 text rendering on iOS

chak_stud chak_stud at yahoo.de
Wed Mar 14 06:59:01 PDT 2012


Hi cu-2,

I have the same problem in simulator, but i also can't compile the cairo-lib
for device. Do you have a hint for me to compile the cairo-lib for device?
Many Thanks!!


regards,
chak



cu-2 wrote:
> 
> Behdad,
> 
> You were absolutely correct on item one. A different font from the one I
> expected was being selected, and it didn't have the right glyphs.
> Problem has been solved, thank you!
> 
> Behdad Esfahbod wrote:
>>
>>
>> What you see means one of two things:
>>
>> - The font you are choosing doesn't have glyphs for the characters you
>> are
>> trying to render,
>>
>> - You are encoding your text wrongly (less likely).
>>
>> You should check what font backends are actually being enabled / used. 
>> If no
>> native font backends could be enabled, then all you get is the internal
>> cairo
>> font which only supports ASCII.
>>
>> If you want automatic font substitution, and non-Latin support or
>> advanced
>> typographic features, what Dom said shall be take more seriously (as
>> opposed
>> to take as a 'stock answer').  Either use PangoCairo, or build a text
>> rendering system yourself using HarfBuzz, Cairo, FriBidi, and other
>> pieces
>> (much much more work).
>>
>> Two cents from your resident text rendering expert.  Feel free to ignore.
>> behdad
>>   
> 
> --
> cairo mailing list
> cairo at cairographics.org
> http://lists.cairographics.org/mailman/listinfo/cairo
> 
> 

-- 
View this message in context: http://old.nabble.com/-cairo--utf8-text-rendering-on-iOS-tp33391771p33501109.html
Sent from the Free Desktop - Cairo - General mailing list archive at Nabble.com.



More information about the cairo mailing list