diff --git a/src/gfx_layout.h b/src/gfx_layout.h --- a/src/gfx_layout.h +++ b/src/gfx_layout.h @@ -12,7 +12,7 @@ #include "fontcache.h" #include "gfx_func.h" -#include "core/smallmap_type.hpp" +#include "core/math_func.hpp" #include #include @@ -81,7 +81,7 @@ public: }; /** Mapping from index to font. */ -typedef SmallMap FontMap; +using FontMap = std::map; /** * Interface to glue fallback and normal layouter into one. @@ -169,7 +169,7 @@ private: static LineCacheItem &GetCachedParagraphLayout(std::string_view str, const FontState &state); - typedef SmallMap FontColourMap; + using FontColourMap = std::map; static FontColourMap fonts[FS_END]; public: static Font *GetFont(FontSize size, TextColour colour);