How to find out which alphabets support a true type font

Skip to first unread message

Heidi Kurz

Apr 29, 2021, 6:29:21 AMApr 29
to skia-discuss
Hi together, 
I need some help about the following problem. 
I use the Shaper module to render unicode letters like Arabic or Hephrew. 
Now I need a functionality how to find out which alphabets support a true type font. 
For example I have to render Arabic strings, but not all available true type fonts support Arabic letters. So I have to choose the correct available true type font. 
I hope you can understand my problem. 
BR, Heidi

Ben Wagner

Apr 29, 2021, 9:18:18 AMApr 29
There is somewhat simple support for this in Skia with
SkFontMgr::matchFamilyStyleCharacter. Note that this is what
FontMgrRunIterator::consume currently uses to do font fallback.

Different platforms handle font fallback and matching in different
ways ways, though recently it may be possible to provide a bit better
implementation in Skia which could be supported cross platform. The
main issue here is that it is fairly time consuming to go through a
collection of fonts and extract the character map information, so
every platform tries to cache this information as much as possible.
> --
> You received this message because you are subscribed to the Google Groups "skia-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
> To view this discussion on the web visit
Reply all
Reply to author
0 new messages