summaryrefslogtreecommitdiff
path: root/src/fm.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/fm.h')
-rw-r--r--src/fm.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/fm.h b/src/fm.h
new file mode 100644
index 0000000..f8e024e
--- /dev/null
+++ b/src/fm.h
@@ -0,0 +1,31 @@
+#ifndef _TTF2F_FM_H_
+#define _TTF2F_FM_H_
+
+struct font_metrics {
+ /* post */
+ double italic_angle;
+ short underline_position;
+ short underline_thickness;
+ short is_fixed_pitch;
+
+ /* hhea */
+ short ascender;
+ short descender;
+
+ /* head */
+ unsigned short units_per_em;
+ short bbox[4];
+
+ /* name */
+ char *name_copyright;
+ char *name_family;
+ char *name_style;
+ char *name_full;
+ char *name_version;
+ char *name_ps;
+
+ /* other */
+ int force_bold;
+};
+
+#endif