diff --git a/common/changes/@visactor/vrender-animate/fix-fix-issue-of-textMeasure_2026-01-19-10-59.json b/common/changes/@visactor/vrender-animate/fix-fix-issue-of-textMeasure_2026-01-19-10-59.json new file mode 100644 index 000000000..00e4f88d0 --- /dev/null +++ b/common/changes/@visactor/vrender-animate/fix-fix-issue-of-textMeasure_2026-01-19-10-59.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "fix: fix issue of textMeasure\n\n", + "type": "none", + "packageName": "@visactor/vrender-animate" + } + ], + "packageName": "@visactor/vrender-animate", + "email": "lixuef1313@163.com" +} \ No newline at end of file diff --git a/common/changes/@visactor/vrender-components/fix-fix-issue-of-textMeasure_2026-01-19-10-59.json b/common/changes/@visactor/vrender-components/fix-fix-issue-of-textMeasure_2026-01-19-10-59.json new file mode 100644 index 000000000..739e90a1a --- /dev/null +++ b/common/changes/@visactor/vrender-components/fix-fix-issue-of-textMeasure_2026-01-19-10-59.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "fix: fix issue of textMeasure\n\n", + "type": "none", + "packageName": "@visactor/vrender-components" + } + ], + "packageName": "@visactor/vrender-components", + "email": "lixuef1313@163.com" +} \ No newline at end of file diff --git a/common/changes/@visactor/vrender-kits/fix-fix-issue-of-textMeasure_2026-01-19-10-59.json b/common/changes/@visactor/vrender-kits/fix-fix-issue-of-textMeasure_2026-01-19-10-59.json new file mode 100644 index 000000000..aef01cb80 --- /dev/null +++ b/common/changes/@visactor/vrender-kits/fix-fix-issue-of-textMeasure_2026-01-19-10-59.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "fix: fix issue of textMeasure\n\n", + "type": "none", + "packageName": "@visactor/vrender-kits" + } + ], + "packageName": "@visactor/vrender-kits", + "email": "lixuef1313@163.com" +} \ No newline at end of file diff --git a/packages/vrender-kits/src/canvas/contributions/browser/context.ts b/packages/vrender-kits/src/canvas/contributions/browser/context.ts index acfc8be43..87a134aec 100644 --- a/packages/vrender-kits/src/canvas/contributions/browser/context.ts +++ b/packages/vrender-kits/src/canvas/contributions/browser/context.ts @@ -237,6 +237,7 @@ export class BrowserContext2d implements IContext2d { this.reset(); } else { this.nativeContext.restore(); + this._font = ''; } }