From fe0e9a05d4f334c5f9bd686e94fd7d56d21fa0cb Mon Sep 17 00:00:00 2001 From: ckcz123 Date: Thu, 2 Jul 2020 12:30:46 +0800 Subject: [PATCH] Fix import fonts --- main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.js b/main.js index abada006..debeda0d 100644 --- a/main.js +++ b/main.js @@ -386,7 +386,7 @@ main.prototype.importFonts = function (fonts) { style.type = 'text/css'; var html = ''; fonts.forEach(function (font) { - html += '@font-face { font-family: "'+font+'"; src: url("project/fonts/'+font+'.ttf") format("truetype")'; + html += '@font-face { font-family: "'+font+'"; src: url("project/fonts/'+font+'.ttf") format("truetype"); }'; }); style.innerHTML = html; document.body.appendChild(style);