summaryrefslogtreecommitdiff
path: root/src/fontcache.h
diff options
context:
space:
mode:
authorMichael Lutz <michi@icosahedron.de>2018-05-26 16:13:12 +0200
committerMichael Lutz <michi@icosahedron.de>2018-06-06 21:37:09 +0200
commit768a31bfe3bc8da1482e0c7115bc46bf90b1e7ec (patch)
treebf5534df4faf1a9d48edbf355b8e7c1fa2ef2cb9 /src/fontcache.h
parenta4278c302b7721d22e4501315b5a1713f5471163 (diff)
downloadopenttd-768a31bfe3bc8da1482e0c7115bc46bf90b1e7ec.tar.xz
Add: [Win32] Text layout using the native Windows Uniscribe library.
Uniscribe is sometimes producing different results compared to ICU, especially when RTL and LTR content is mixed. Comparing the results to other programs (like editors or web browsers) leads me to believe that the result are at least not worse than ICU and possibly better.
Diffstat (limited to 'src/fontcache.h')
-rw-r--r--src/fontcache.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/fontcache.h b/src/fontcache.h
index 8caf4f1bd..8d66ed366 100644
--- a/src/fontcache.h
+++ b/src/fontcache.h
@@ -143,6 +143,11 @@ public:
{
return this->parent != NULL;
}
+
+ /**
+ * Is this a built-in sprite font?
+ */
+ virtual bool IsBuiltInFont() = 0;
};
/** Get the SpriteID mapped to the given font size and key */