feat: web text support custom font
This commit is contained in:
		| @@ -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