Fix import fonts
This commit is contained in:
parent
7e38486c80
commit
fe0e9a05d4
2
main.js
2
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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user