getcharacters: use stringbuilder, set tag modfied when it was moved

This commit is contained in:
honfika@gmail.com
2014-11-13 00:23:28 +01:00
parent 4bca4746f6
commit 4719cc196f
2 changed files with 4 additions and 3 deletions

View File

@@ -320,11 +320,11 @@ public final class DefineCompactedFont extends FontTag implements DrawableTag {
@Override
public String getCharacters(List<Tag> tags) {
FontType ft = fonts.get(0);
String ret = "";
StringBuilder ret = new StringBuilder(ft.glyphInfo.size());
for (GlyphInfoType gi : ft.glyphInfo) {
ret += (char) gi.glyphCode;
ret.append((char) gi.glyphCode);
}
return ret;
return ret.toString();
}
@Override