diff options
Diffstat (limited to 'src/libjin/Graphics/Font/TTF.cpp')
-rw-r--r-- | src/libjin/Graphics/Font/TTF.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/libjin/Graphics/Font/TTF.cpp b/src/libjin/Graphics/Font/TTF.cpp index 4c3648a..b90bbba 100644 --- a/src/libjin/Graphics/Font/TTF.cpp +++ b/src/libjin/Graphics/Font/TTF.cpp @@ -317,7 +317,7 @@ namespace jin int TTF::getCharWidth(int c) { int adw, lsb; - ttf->pushTTFsize(fontSize); + ttf->pushTTFsize(mFontSize); ttf->getHMetrics(c, &adw, &lsb); ttf->popTTFsize(); return adw; @@ -330,7 +330,7 @@ namespace jin int TTF::getTextWidth(const Content& t, int spacing) { - ttf->pushTTFsize(fontSize); + ttf->pushTTFsize(mFontSize); int res = 0; int tmp = 0; for (Codepoint c : t) @@ -352,7 +352,7 @@ namespace jin int TTF::getTextHeight(const Content& t, int lineheight) { - ttf->pushTTFsize(fontSize); + ttf->pushTTFsize(mFontSize); int res = 0; bool newline = true; for (Codepoint c : t) @@ -372,7 +372,7 @@ namespace jin void TTF::getTextBox(const Content& text, int* w, int* h, int lineheight, int spacing) { - ttf->pushTTFsize(fontSize); + ttf->pushTTFsize(mFontSize); *w = 0; *h = 0; int tmp = 0; @@ -402,7 +402,7 @@ namespace jin TTF::TTFGlyph& TTF::bakeGlyph(unsigned int character) { int w, h, xoff, yoff; - ttf->pushTTFsize(fontSize); + ttf->pushTTFsize(mFontSize); GLuint atlas = atlases.back(); const Color* bitmap = ttf->getCodepointBitmap(character, &w, &h, &xoff, &yoff); int adw, lsb; |