Add hb_face_get_upem()
authorBehdad Esfahbod <behdad@behdad.org>
Mon, 4 Oct 2010 22:18:48 +0000 (18:18 -0400)
committerBehdad Esfahbod <behdad@behdad.org>
Mon, 4 Oct 2010 22:18:48 +0000 (18:18 -0400)
src/hb-font.cc
src/hb-font.h

index fd5df93..223b2b4 100644 (file)
@@ -397,6 +397,12 @@ hb_face_get_table (hb_face_t *face,
   return blob;
 }
 
+unsigned int
+hb_face_get_upem (hb_face_t *face)
+{
+  return (face->head_table ? face->head_table : &Null(head))->get_upem ();
+}
+
 
 /*
  * hb_font_t
index 7815985..934f17c 100644 (file)
@@ -78,6 +78,9 @@ hb_blob_t *
 hb_face_get_table (hb_face_t *face,
                   hb_tag_t   tag);
 
+unsigned int
+hb_face_get_upem (hb_face_t *face);
+
 
 /*
  * hb_font_funcs_t