Cleaning code a bit. No need to call Font.loadGlyphs since this is done automatically by Text.fromString
This commit is contained in:
committed by
MattTuttle
parent
5b2287a374
commit
23f8e01d2a
@@ -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<GlyphInfo> glyphList;
|
||||
size_t mSize;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user