mirror of
https://github.com/smallmain/cocos-enhance-kit.git
synced 2024-12-26 11:48:29 +00:00
[engine] Fix the character spacing error in the rendering of Label under Char Mode
This commit is contained in:
parent
9b5704db02
commit
8b254fb84d
@ -232,6 +232,10 @@ export default class BmfontAssembler extends Assembler2D {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_clearHorizontalKerning() {
|
||||||
|
_horizontalKernings.length = 0;
|
||||||
|
}
|
||||||
|
|
||||||
_multilineTextWrap (nextTokenFunc) {
|
_multilineTextWrap (nextTokenFunc) {
|
||||||
let textLen = _string.length;
|
let textLen = _string.length;
|
||||||
|
|
||||||
|
@ -560,7 +560,11 @@ export default class LetterFontAssembler extends WebglBmfontAssembler {
|
|||||||
|
|
||||||
return fontDesc;
|
return fontDesc;
|
||||||
}
|
}
|
||||||
_computeHorizontalKerningForText () {}
|
|
||||||
|
_computeHorizontalKerningForText () {
|
||||||
|
this._clearHorizontalKerning();
|
||||||
|
}
|
||||||
|
|
||||||
_determineRect (tempRect) {
|
_determineRect (tempRect) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user