Codechange: Refactor the Freetype font cache into a generic part that does not depend on Freetype and into one that does.

This makes it easier to add other TrueType font rendering engines.
This commit is contained in:
Michael Lutz
2018-11-25 01:32:48 +01:00
committed by Owen Rudge
parent f8fb9fda6b
commit a8b6e9f23c
3 changed files with 244 additions and 181 deletions

View File

@@ -68,6 +68,10 @@
#include "void_map.h"
#include "station_base.h"
#if defined(WITH_FREETYPE)
#define HAS_TRUETYPE_FONT
#endif
#include "table/strings.h"
#include "table/settings.h"