Skip to content

Commit 04ee7fa

Browse files
committed
eject old custom font before loading new one
1 parent aa05b0d commit 04ee7fa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/App.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,7 @@ export default {
343343
reader.readAsText(file);
344344
345345
reader.onload = () => {
346+
this.customFont = null;
346347
const fontName = svgFontRenderer.addSVGFontFromData(reader.result);
347348
if (fontName){
348349
this.error = false;

0 commit comments

Comments
 (0)