mirror of
https://github.com/smallmain/cocos-enhance-kit.git
synced 2025-04-12 06:51:01 +00:00
fix: Missing update canvas.context.font
This commit is contained in:
parent
0b81cb1b19
commit
0d35f7688b
@ -452,6 +452,7 @@ class LetterAtlases {
|
||||
if (!letter) {
|
||||
if (this._enableLetterCache) {
|
||||
const canvas = Label._canvasPool.get();
|
||||
canvas.context.font = labelInfo.fontDesc;
|
||||
this.letterCache[hash] = {
|
||||
char,
|
||||
hash: labelInfo.hash,
|
||||
|
Loading…
x
Reference in New Issue
Block a user