You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In QML ttf can be inserted by QFontDatabase::addApplicationFont("example-font.ttf"); but only accessed by code (e.g. "\ue002"). So if the following JS is generated
/* Icons for font example */
var icons = {
"success" : "\ue001",
"failure" : "\ue002",
"plus" : "\ue003",
"minus" : "\ue004",
}
in a QML file the js file can be imported by import "example-font-icons.js" as example and later on used example.icons.success
The following code must be inserted in glyphs2font.js:
In QML ttf can be inserted by
QFontDatabase::addApplicationFont("example-font.ttf");
but only accessed by code (e.g. "\ue002"). So if the following JS is generatedin a QML file the js file can be imported by
import "example-font-icons.js" as example
and later on usedexample.icons.success
The following code must be inserted in glyphs2font.js:
Then by adding
qmljs: example-font-icons.js
to yml file generator is enabledThe text was updated successfully, but these errors were encountered: