aboutsummaryrefslogtreecommitdiff
path: root/src/libjin/Graphics/Font/TextureFont.cpp
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2018-10-15 12:49:54 +0800
committerchai <chaifix@163.com>2018-10-15 12:49:54 +0800
commit68b60be0d1da84aa670d29b87b26ab3e3db51b69 (patch)
tree661b2b1aff66ce3068c2bd6e4abe66734e3d1706 /src/libjin/Graphics/Font/TextureFont.cpp
parent437ea76fc9b61240b2f8d1b0b800f3f7a73af766 (diff)
*增加默认字体
Diffstat (limited to 'src/libjin/Graphics/Font/TextureFont.cpp')
-rw-r--r--src/libjin/Graphics/Font/TextureFont.cpp2
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;