diff options
author | Michael Lutz <michi@icosahedron.de> | 2018-10-28 23:30:49 +0100 |
---|---|---|
committer | Michael Lutz <michi@icosahedron.de> | 2018-12-08 20:13:27 +0100 |
commit | 32ce1ce3473253644d1237227706e4f8ce55ab7a (patch) | |
tree | 59731354a3b4ced7e0f6040e696ff670e39d2d19 /src/fontcache.h | |
parent | 4bf216993a1df7a29922bf34e2d8191460842452 (diff) | |
download | openttd-32ce1ce3473253644d1237227706e4f8ce55ab7a.tar.xz |
Add: [OSX] Text layout using the native CoreText API.
By default, the native API will be used instead of ICU, but if ICU is
forced in using configure, it will take precedence.
Diffstat (limited to 'src/fontcache.h')
-rw-r--r-- | src/fontcache.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/fontcache.h b/src/fontcache.h index 8d66ed366..1f5e56d92 100644 --- a/src/fontcache.h +++ b/src/fontcache.h @@ -65,6 +65,12 @@ public: inline int GetUnitsPerEM() const { return this->units_per_em; } /** + * Get the nominal font size of the font. + * @return The nominal font size. + */ + virtual int GetFontSize() const { return this->height; } + + /** * Get the SpriteID mapped to the given key * @param key The key to get the sprite for. * @return The sprite. |