diff options
Diffstat (limited to 'src/libjin/Graphics/Font/TextureFont.cpp')
-rw-r--r-- | src/libjin/Graphics/Font/TextureFont.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libjin/Graphics/Font/TextureFont.cpp b/src/libjin/Graphics/Font/TextureFont.cpp index 4dde236..7ee1962 100644 --- a/src/libjin/Graphics/Font/TextureFont.cpp +++ b/src/libjin/Graphics/Font/TextureFont.cpp @@ -231,6 +231,7 @@ namespace graphics TextureFont::TextureFont(const Bitmap* bitmap, const Content& codepoints, int cellw, int cellh) : Drawable(bitmap) + , Font(cellh) { TextureGlyph glyph; Vector2<int> count(bitmap->getWidth() / cellw, bitmap->getHeight() / cellh); @@ -251,6 +252,7 @@ namespace graphics TextureFont::TextureFont(const Bitmap* bitmap, const Content& codepoints, Color mask, int cellh) : Drawable(bitmap) + , Font(cellh) { TextureGlyph glyph; glyph.h = cellh; |