mirror of
https://github.com/smallmain/cocos-enhance-kit.git
synced 2024-12-25 11:18:30 +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) {
|
||||
let textLen = _string.length;
|
||||
|
||||
|
@ -560,7 +560,11 @@ export default class LetterFontAssembler extends WebglBmfontAssembler {
|
||||
|
||||
return fontDesc;
|
||||
}
|
||||
_computeHorizontalKerningForText () {}
|
||||
|
||||
_computeHorizontalKerningForText () {
|
||||
this._clearHorizontalKerning();
|
||||
}
|
||||
|
||||
_determineRect (tempRect) {
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user