浏览代码

minor fix

ncannasse 10 年之前
父节点
当前提交
ae5b282753
共有 1 个文件被更改,包括 1 次插入1 次删除
  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));
 				var code = c.att.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
 					glyphs.set(c.att.code.charCodeAt(0), fc);
 			}