diff options
author | chai <chaifix@163.com> | 2018-10-16 13:43:57 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-10-16 13:43:57 +0800 |
commit | be59ac06cbcd60895e25f2e7d76846ee3e6a0d92 (patch) | |
tree | e73c977f9161acfdd119ec1bcee4b15a208cea54 /src/libjin/Graphics | |
parent | 90802fc96de6523ce12290cd66703aa1351c91dd (diff) |
+增加=符号
Diffstat (limited to 'src/libjin/Graphics')
-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; |