[HarfBuzz] How to make sure an hb_font_t object is valid?
ebraminio at gmail.com
Wed May 29 19:07:34 UTC 2019
Getting glyph count is just as good anything you can thing, if a font
doesn't have a glyph it is either empty or corrupted, there no valid use
case for such AFAICU
On Wednesday, May 29, 2019, Eli Zaretskii <eliz at gnu.org> wrote:
> Last time I asked a similar question, I was told to use
> hb_face_get_glyph_count. But eventually I need to know that an
> hb_font_t I create from the face is valid and can be used for
> shaping. What are the best practices for doing that?
> Or maybe the shaper will return 'false' when given an invalid font,
> and all I need is to test the return value of the shaper?
> HarfBuzz mailing list
> HarfBuzz at lists.freedesktop.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the HarfBuzz