add icon font support (except for res)
This commit is contained in:
@@ -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: {
|
||||
|
Reference in New Issue
Block a user