From be59ac06cbcd60895e25f2e7d76846ee3e6a0d92 Mon Sep 17 00:00:00 2001 From: chai Date: Tue, 16 Oct 2018 13:43:57 +0800 Subject: =?UTF-8?q?+=E5=A2=9E=E5=8A=A0=3D=E7=AC=A6=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/libjin/Graphics/Font/TTF.cpp | 26 +++++++++++++------------- src/libjin/Graphics/Font/TTF.h | 2 +- 2 files changed, 14 insertions(+), 14 deletions(-) (limited to 'src/libjin/Graphics') 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; -- cgit v1.1-26-g67d0