add icon font support (except for res)

This commit is contained in:
王劲鹏
2021-05-26 15:47:44 +08:00
committed by osborn
parent 08d767bed0
commit 1d4667b347
4 changed files with 33 additions and 0 deletions

View File

@@ -6,6 +6,8 @@ import "util.mjs" as Util
import "gravity.mjs" as Gravity
TextArea {
FontLoader { id: webFont }
property var wrapper
property var uuid: Util.uuidv4()
@@ -21,6 +23,13 @@ TextArea {
property int textAlignment: 0
property var fontSource: ""
onFontSourceChanged: {
webFont.source = fontSource
font.family = webFont.name
}
property var fontStyle: ""
onFontStyleChanged: {