diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2010-11-28 19:39:47 -0500 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2010-11-28 19:39:47 -0500 |
commit | 3c48982be6b2286088541ee55cac78b0f2b6e771 (patch) | |
tree | 5154d00d5a5f4a0910bed8760893ab6bc1686d54 | |
parent | 4f9e4a40bc248aeb1364ed6f4aa7f392aa364497 (diff) | |
download | harfbuzz-3c48982be6b2286088541ee55cac78b0f2b6e771.tar.gz harfbuzz-3c48982be6b2286088541ee55cac78b0f2b6e771.tar.bz2 harfbuzz-3c48982be6b2286088541ee55cac78b0f2b6e771.zip |
Adjust pyx files to reflect change from int to hb_var_int_t
Patch from Thomas Hunger.
-rw-r--r-- | contrib/python/lib/harfbuzz.pyx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/contrib/python/lib/harfbuzz.pyx b/contrib/python/lib/harfbuzz.pyx index 4d71ead..f483fd6 100644 --- a/contrib/python/lib/harfbuzz.pyx +++ b/contrib/python/lib/harfbuzz.pyx @@ -52,12 +52,15 @@ cdef extern from "hb-buffer.h" : hb_mask_t mask unsigned long cluster + ctypedef union hb_var_int_t: + unsigned long u32 + ctypedef struct hb_glyph_position_t : hb_position_t x_advance hb_position_t y_advance hb_position_t x_offset hb_position_t y_offset - unsigned long internal + hb_var_int_t var hb_buffer_t *hb_buffer_create(unsigned int size) hb_buffer_t *hb_buffer_reference(hb_buffer_t *buffer) @@ -156,7 +159,7 @@ cdef class buffer : infos = hb_buffer_get_glyph_infos(self.buffer) positions = hb_buffer_get_glyph_positions(self.buffer) for 0 <= i < num : - temp = glyphinfo(infos[i].codepoint, infos[i].cluster, (positions[i].x_advance / scale, positions[i].y_advance / scale), (positions[i].x_offset / scale, positions[i].y_offset / scale), positions[i].internal) + temp = glyphinfo(infos[i].codepoint, infos[i].cluster, (positions[i].x_advance / scale, positions[i].y_advance / scale), (positions[i].x_offset / scale, positions[i].y_offset / scale), positions[i].var.u32) res.append(temp) return res |