Browse Source

minor fix

ncannasse 10 years ago
parent
commit
ae5b282753
1 changed files with 1 additions and 1 deletions
  1. 1 1
      hxd/res/BitmapFont.hx

+ 1 - 1
hxd/res/BitmapFont.hx

@@ -34,7 +34,7 @@ class BitmapFont extends Resource {
 					fc.addKerning(k.att.id.charCodeAt(0), Std.parseInt(k.att.advance));
 					fc.addKerning(k.att.id.charCodeAt(0), Std.parseInt(k.att.advance));
 				var code = c.att.code;
 				var code = c.att.code;
 				if( StringTools.startsWith(code, "&#") )
 				if( StringTools.startsWith(code, "&#") )
-					glyphs.set(Std.parseInt(code.substr(2)), fc);
+					glyphs.set(Std.parseInt(code.substr(2,code.length-3)), fc);
 				else
 				else
 					glyphs.set(c.att.code.charCodeAt(0), fc);
 					glyphs.set(c.att.code.charCodeAt(0), fc);
 			}
 			}