summaryrefslogtreecommitdiff
path: root/src/fontcache.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2013-06-25 20:39:58 +0000
committerrubidium <rubidium@openttd.org>2013-06-25 20:39:58 +0000
commit7b10e39bf104e9983548ee1b6d94e9dbb57fdb27 (patch)
treecfd5dc61fe35cb3b29819ca3b56f133a40965cd2 /src/fontcache.h
parentc90dbe20186059eb20574cab442f792b449d16ba (diff)
downloadopenttd-7b10e39bf104e9983548ee1b6d94e9dbb57fdb27.tar.xz
(svn r25469) -Add: method for getting the font tables from freetype fonts
Diffstat (limited to 'src/fontcache.h')
-rw-r--r--src/fontcache.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/fontcache.h b/src/fontcache.h
index a910ac0e4..6e4d18b3b 100644
--- a/src/fontcache.h
+++ b/src/fontcache.h
@@ -112,6 +112,13 @@ public:
virtual GlyphID MapCharToGlyph(WChar key) = 0;
/**
+ * Read a font table from the font.
+ * @param tag The of the table to load.
+ * @return The loaded table data.
+ */
+ virtual const void *GetFontTable(uint32 tag) = 0;
+
+ /**
* Get the font cache of a given font size.
* @param fs The font size to look up.
* @return The font cache.