summaryrefslogtreecommitdiff
path: root/src/context.h
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2009-05-10 21:38:00 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2009-05-10 21:38:00 +0000
commit9270294d7d5de0dcfb680596a3f8e51365062358 (patch)
tree2deb3e75e9e3c8f26788d8a4324c82218608d89e /src/context.h
parent952ede7bafced5370174a837c2aa18d01a5a30bd (diff)
downloadttf2f-9270294d7d5de0dcfb680596a3f8e51365062358.tar.gz
ttf2f-9270294d7d5de0dcfb680596a3f8e51365062358.tar.bz2
Introduce a conversion context.
svn path=/trunk/tools/ttf2f/; revision=7456
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