- 精华
- 阅读权限
- 30
- 贡献
- 人
- 好友
- 相册
- 分享
- 听众
- 收听
- 注册时间
- 2025-6-27
- 在线时间
- 小时
- 最后登录
- 1970-1-1
|
发表于 2026-5-16 01:55:57
|
显示全部楼层
替换成下面的代码就好了
{
var y=l+v;
if ("\r"!==(c=pX.charAt(y))) {
if (u=_k.fontAtlas.getLetterDefinitionForChar(c,_k)) {
var T=m+u.offsetX*_X-_k.margin;
if (AX&&wX>0&&n>0&&T+u.w*_X>wX&&!$F(c)) {
iX.push(a),a=0,i++,n=0,r-=EX*this._getFontScale()+0,g=!0;
break;
}
aX.x=T,aX.y=r-u.offsetY*_X;
this._recordLetterInfo(aX,c,y,i);
y+1<tX.length&&y<e-1&&(m+=tX[y+1]*_X);
m+=u.xAdvance*_X+TX;
p=aX.x+u.w*_X;
_<aX.y&&(_=aX.y);
f>aX.y-u.h*_X&&(f=aX.y-u.h*_X);
} else {
this._recordPlaceholderInfo(y,c);
}
} else {
this._recordPlaceholderInfo(y,c);
}
} |
|