summaryrefslogtreecommitdiff
path: root/src/context.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/context.h')
-rw-r--r--src/context.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/context.h b/src/context.h
new file mode 100644
index 0000000..b89fa7f
--- /dev/null
+++ b/src/context.h
@@ -0,0 +1,18 @@
+#ifndef ttf2f_context_h_
+#define ttf2f_context_h_
+
+#include "fm.h"
+#include "glyph.h"
+
+typedef struct ttf2f_ctx ttf2f_ctx;
+
+struct ttf2f_ctx {
+ struct font_metrics *metrics;
+
+ size_t nglyphs;
+ struct glyph *glyphs;
+
+ struct glyph *latin1tab[256];
+};
+
+#endif