fix: Missing update canvas.context.font

This commit is contained in:
段旭东 2025-02-05 15:01:28 +08:00 committed by SmallMain
parent e1c2158287
commit d36b9300ef

View File

@ -452,6 +452,7 @@ class LetterAtlases {
if (!letter) { if (!letter) {
if (this._enableLetterCache) { if (this._enableLetterCache) {
const canvas = Label._canvasPool.get(); const canvas = Label._canvasPool.get();
canvas.context.font = labelInfo.fontDesc;
this.letterCache[hash] = { this.letterCache[hash] = {
char, char,
hash: labelInfo.hash, hash: labelInfo.hash,