|
@@ -802,7 +802,7 @@
|
|
|
if(char !== "\t" && !this._isWhiteSpaceCharVert(char)){
|
|
|
//make sure space char gets processed here or overlapping can occur when text is set
|
|
|
let ci = texture.getChar(char);
|
|
|
- let partOffset = new Vector2(offset.x + ci.xOffset, offset.y + ci.yOffset);
|
|
|
+ let partOffset = new Vector2(Math.floor(offset.x + ci.xOffset), Math.floor(offset.y + ci.yOffset));
|
|
|
this.updateInstanceDataPart(d, partOffset);
|
|
|
d.topLeftUV = ci.topLeftUV;
|
|
|
let suv = ci.bottomRightUV.subtract(ci.topLeftUV);
|
|
@@ -816,7 +816,7 @@
|
|
|
++d.curElement;
|
|
|
}
|
|
|
|
|
|
- offset.x += charWidth;
|
|
|
+ offset.x += Math.floor(charWidth);
|
|
|
charNum++;
|
|
|
}
|
|
|
|