diff --git a/project/include/graphics/Font.h b/project/include/graphics/Font.h index 36e2932d2..50902331d 100644 --- a/project/include/graphics/Font.h +++ b/project/include/graphics/Font.h @@ -67,8 +67,7 @@ namespace lime { private: - bool InsertCodepoint (unsigned long codepoint); - bool InsertCodepoint (unsigned long codepoint, bool b); + bool InsertCodepoint (unsigned long codepoint, bool b = true); std::list glyphList; size_t mSize; diff --git a/project/src/graphics/Font.cpp b/project/src/graphics/Font.cpp index 04d64fa92..735c36176 100644 --- a/project/src/graphics/Font.cpp +++ b/project/src/graphics/Font.cpp @@ -528,15 +528,10 @@ namespace lime { } - bool Font::InsertCodepointFromIndex (unsigned long codepoint) { return InsertCodepoint(codepoint, false); } - bool Font::InsertCodepoint (unsigned long codepoint) { - return InsertCodepoint(codepoint, true); - } - bool Font::InsertCodepoint (unsigned long codepoint, bool b) { GlyphInfo info; diff --git a/samples/TextRendering/Source/Main.hx b/samples/TextRendering/Source/Main.hx index dec5b65d4..2302a852d 100644 --- a/samples/TextRendering/Source/Main.hx +++ b/samples/TextRendering/Source/Main.hx @@ -23,7 +23,6 @@ class TextField { public function new (text:String, size:Int, textFormat:TextFormat, font:Font, context:RenderContext, x:Float=0, y:Float=0) { points = textFormat.fromString (font, size, text); - font.loadGlyphs (size, text); image = font.createImage (); this.text = text; this.size = size;