[HarfBuzz] Unpacking glyph infos and positions in python (again!)

Behdad Esfahbod behdad at behdad.org
Fri Aug 5 23:36:23 UTC 2016


Ask on gobject-introspection / pygoject lists forums.  Or figure out
how to use ctypes.  Or something else.  I don't have time to spend on
this right now.

Thanks

On Fri, Aug 5, 2016 at 3:59 PM, Kelvin Ma <kelvinsthirteen at gmail.com> wrote:
> Since patching The Library appears to be a nonstarter, then what is the
> correct, workable way to unpack the <hb_glyph_info_t> and
> <hb_glyph_position_t> objects given by the harfbuzz PyGObject buffer? As I
> have mentioned many, many times, performing dynamic lookups on four struct
> attributes is too inefficient to be useful for extracting shaped text from
> “the real world”. It is over ten times slower than the original C function.
>
> Unless an alternative method exists, I’m afraid the harfbuzz python bindings
> are only useful for shaping trivial amounts of text.
>
> _______________________________________________
> HarfBuzz mailing list
> HarfBuzz at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/harfbuzz
>



-- 
behdad
http://behdad.org/


More information about the HarfBuzz mailing list