[HarfBuzz] HarfBuzz Digest, Vol 120, Issue 18

kelvinsthirteen at gmail.com kelvinsthirteen at gmail.com
Mon Jun 20 15:07:32 UTC 2016


> Message: 2
> Date: Mon, 20 Jun 2016 08:57:44 +0700
> From: Martin Hosken <mhosken at gmail.com>
> To: harfbuzz at lists.freedesktop.org
> Subject: Re: [HarfBuzz] Python: accessing harfbuzz enums
> Message-ID: <20160620085744.64786b44 at sil-mh7>
> Content-Type: text/plain; charset=US-ASCII
> 
> On Sun, 19 Jun 2016 16:34:23 -0400
> Kelvin Ma <kelvinsthirteen at gmail.com> wrote:
> 
>> When using the python harfbuzz bindings, how do I access the harfbuzz enums
>> for direction, script, & language? Also can someone explain the difference
>> between direction and script because I thought script implies direction.
> 
> Look in hb-common.h which is pulled in by hb.h.
> 

okay but how do i import those in python

> There are enums for hb_direction_t and hb_script_t. There is no enum for hb_language_t, but you can get one by using hb_language_from_string().

Where’s the list of language strings that i can use with hb.language_from_string? & can i get the enums out of that & store them to avoid the lookup?


More information about the HarfBuzz mailing list