summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2009-10-29 03:08:42 -0400
committerBehdad Esfahbod <behdad@behdad.org>2009-10-29 03:08:42 -0400
commitbfbe9aea599bc98ffd4640268a66c90d6fa21736 (patch)
treebf4d342e1e10fb030cfdeaa41054fcd48ec47cd3
parentcdb7383be41b4ace0e6d9f3a05ac3983e8d4eaf0 (diff)
downloadpango-bfbe9aea599bc98ffd4640268a66c90d6fa21736.tar.gz
[HB] Add glyph_metrics typedef
-rw-r--r--pango/opentype/hb-font.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/pango/opentype/hb-font.h b/pango/opentype/hb-font.h
index 15dd351b..e020bd83 100644
--- a/pango/opentype/hb-font.h
+++ b/pango/opentype/hb-font.h
@@ -98,6 +98,15 @@ hb_font_funcs_make_immutable (hb_font_funcs_t *ffuncs);
/* funcs */
typedef struct _hb_glyph_metrics_t hb_glyph_metrics_t;
+struct _hb_glyph_metrics_t
+{
+ hb_position_t x_advance;
+ hb_position_t y_advance;
+ hb_position_t x_offset;
+ hb_position_t y_offset;
+ hb_position_t width;
+ hb_position_t height;
+};
typedef hb_codepoint_t (*hb_font_get_glyph_func_t) (hb_font_t *font, hb_face_t *face, const void *user_data,
hb_codepoint_t unicode, hb_codepoint_t variant_selector);