feat: web text support custom font
This commit is contained in:
parent
af2072ef25
commit
d70cc9c28e
6
doric-web/dist/index.js
vendored
6
doric-web/dist/index.js
vendored
@ -7203,11 +7203,7 @@ var doric_web = (function (exports, axios, sandbox) {
|
||||
}
|
||||
break;
|
||||
case "font":
|
||||
const fontLink = document.createElement('link');
|
||||
fontLink.rel = 'stylesheet';
|
||||
fontLink.href = `${prop}.css`;
|
||||
document.head.appendChild(fontLink);
|
||||
this.view.classList.add(prop);
|
||||
this.view.style.fontFamily = prop;
|
||||
break;
|
||||
case "fontStyle":
|
||||
switch (prop) {
|
||||
|
2
doric-web/dist/index.js.map
vendored
2
doric-web/dist/index.js.map
vendored
File diff suppressed because one or more lines are too long
@ -43,11 +43,7 @@ export class DoricTextNode extends DoricViewNode {
|
||||
}
|
||||
break
|
||||
case "font":
|
||||
const fontLink = document.createElement('link')
|
||||
fontLink.rel = 'stylesheet'
|
||||
fontLink.href = `${prop}.css`
|
||||
document.head.appendChild(fontLink)
|
||||
this.view.classList.add(prop)
|
||||
this.view.style.fontFamily = prop
|
||||
break
|
||||
case "fontStyle":
|
||||
switch (prop) {
|
||||
|
Reference in New Issue
Block a user