summaryrefslogtreecommitdiff
path: root/src/glyph.h
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2009-05-12 15:14:13 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2009-05-12 15:14:13 +0000
commitf65f3d9c94d34d151d15ba8398a1ae4db569d3de (patch)
tree4664af8f63aab8ed33cb028b551867861ff6d0b9 /src/glyph.h
parent0bda05395fbbb2d4c575180acca6ed9433968ee8 (diff)
downloadttf2f-f65f3d9c94d34d151d15ba8398a1ae4db569d3de.tar.gz
ttf2f-f65f3d9c94d34d151d15ba8398a1ae4db569d3de.tar.bz2
Divorce the FT glyph id from the glyph table index.
This permits a single glyph to be mapped to multiple codepoints. In future, we should be more clever and not duplicate the glyph data. svn path=/trunk/tools/ttf2f/; revision=7486
Diffstat (limited to 'src/glyph.h')
-rw-r--r--src/glyph.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/glyph.h b/src/glyph.h
index 8126547..44a6009 100644
--- a/src/glyph.h
+++ b/src/glyph.h
@@ -23,6 +23,7 @@ struct composite {
};
struct glyph {
+ unsigned int glyphidx; /* glyph index */
unsigned int code; /* glyph code */
const char *name; /* glyph name */
int xMin:12, yMin:12;