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;
|
break;
|
||||||
case "font":
|
case "font":
|
||||||
const fontLink = document.createElement('link');
|
this.view.style.fontFamily = prop;
|
||||||
fontLink.rel = 'stylesheet';
|
|
||||||
fontLink.href = `${prop}.css`;
|
|
||||||
document.head.appendChild(fontLink);
|
|
||||||
this.view.classList.add(prop);
|
|
||||||
break;
|
break;
|
||||||
case "fontStyle":
|
case "fontStyle":
|
||||||
switch (prop) {
|
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
|
break
|
||||||
case "font":
|
case "font":
|
||||||
const fontLink = document.createElement('link')
|
this.view.style.fontFamily = prop
|
||||||
fontLink.rel = 'stylesheet'
|
|
||||||
fontLink.href = `${prop}.css`
|
|
||||||
document.head.appendChild(fontLink)
|
|
||||||
this.view.classList.add(prop)
|
|
||||||
break
|
break
|
||||||
case "fontStyle":
|
case "fontStyle":
|
||||||
switch (prop) {
|
switch (prop) {
|
||||||
|
Reference in New Issue
Block a user