diff options
Diffstat (limited to 'src/libjin')
-rw-r--r-- | src/libjin/Graphics/Font/TTF.cpp | 26 | ||||
-rw-r--r-- | src/libjin/Graphics/Font/TTF.h | 2 |
2 files changed, 14 insertions, 14 deletions
diff --git a/src/libjin/Graphics/Font/TTF.cpp b/src/libjin/Graphics/Font/TTF.cpp index edef8a8..105bcfb 100644 --- a/src/libjin/Graphics/Font/TTF.cpp +++ b/src/libjin/Graphics/Font/TTF.cpp @@ -155,19 +155,19 @@ namespace graphics { } - /*static*/ TTF* TTF::createTTF(TTFData* fontData, unsigned int fontSzie) - { - TTF* ttf; - try - { - ttf = new TTF(fontData, fontSzie); - } - catch (...) - { - return nullptr; - } - return ttf; - } + ///*static*/ TTF* TTF::createTTF(TTFData* fontData, unsigned int fontSzie) + //{ + // TTF* ttf; + // try + // { + // ttf = new TTF(fontData, fontSzie); + // } + // catch (...) + // { + // return nullptr; + // } + // return ttf; + //} TTF::TTF(TTFData* f, unsigned int fontSize) : Font(fontSize) diff --git a/src/libjin/Graphics/Font/TTF.h b/src/libjin/Graphics/Font/TTF.h index 4e9a7ae..804cd9d 100644 --- a/src/libjin/Graphics/Font/TTF.h +++ b/src/libjin/Graphics/Font/TTF.h @@ -66,7 +66,7 @@ namespace graphics class TTF : public Font { public: - static TTF* createTTF(TTFData* ttfData, unsigned ttfSzie); + //static TTF* createTTF(TTFData* ttfData, unsigned ttfSzie); Page* typeset(const Text& text, int lineheight, int spacing = 0) override; Page* typeset(const Content& text, int lineheight, int spacing = 0) override; |