more horizontal refactoring
[swftools.git] / lib / ttf.h
index 9a76949..0d1ff50 100644 (file)
--- a/lib/ttf.h
+++ b/lib/ttf.h
@@ -122,7 +122,7 @@ typedef struct _ttfpoint {
 } ttfpoint_t;
 typedef struct _ttfglyph {
     U16 advance;
-    U16 bearing;
+    S16 bearing;
     S16 xmin,ymin,xmax,ymax;
     int code_size;
     U8*code;
@@ -140,7 +140,7 @@ typedef struct _table_head {
 } table_head_t;
 
 typedef struct _table_post {
-    U16 italic_angle;
+    U32 italic_angle;
     U16 underline_position;
     U16 underline_thickness;
 } table_post_t;
@@ -187,7 +187,7 @@ typedef struct _ttf {
     char is_vertical;
 
     S16 ascent;
-    S16 descent;
+    S16 descent; // ymin, *not* negative ymin
     S16 lineGap;
 
     int num_glyphs;