> Message: 2
> Date: Mon, 20 Jun 2016 08:57:44 +0700
> From: Martin Hosken <[email protected]>
> To: [email protected]
> Subject: Re: [HarfBuzz] Python: accessing harfbuzz enums
> Message-ID: <20160620085744.64786b44@sil-mh7>
> Content-Type: text/plain; charset=US-ASCII
> 
> On Sun, 19 Jun 2016 16:34:23 -0400
> Kelvin Ma <[email protected]> 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?
_______________________________________________
HarfBuzz mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/harfbuzz

Reply via email to