[cairo] utf8 text rendering on iOS

cu cairouser at yahoo.com
Sat Mar 10 15:45:31 PST 2012


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
>   



More information about the cairo mailing list