if (fontProperty.modified) {
fontProperty.save()
controller.updateFontsConf(fontInfo)
- controller.saveFontsConf()
+// controller.saveFontsConf()
}
}
x: UI.DEFAULT_MARGIN
text: qsTr("The quick brown fox jumps over the lazy dog")
font.family: fontInfo.enfamily
- font.bold: (fontInfo.enstyle.match(/bold/i) ? true : false)
- font.italic: (fontInfo.enstyle.match(/italic/i) ? true : false)
+ font.bold: /*(fontInfo.enstyle.match(/bold/i) ? true : false) ||*/ (fontInfo.weight >= 200)
+ font.italic: /*(fontInfo.enstyle.match(/italic/i) ? true : false) ||*/ (fontInfo.slant !== 0)
}
Label {
width: parent.width
property variant fontlist
titleText: qsTr("Delete Font?")
message: fontcount > 1 ?
- qsTr("This Font has %1 families(%2).\nDo you really want to remove these fonts now?").arg(fontcount).arg(fontlist.join(qsTr(', '))) :
+ qsTr("This Font has %1 families(%2). Do you really want to remove these fonts now?").arg(fontcount).arg(fontlist.join(qsTr(', '))) :
qsTr("Do you really want to remove this font now?")
acceptButtonText: qsTr("OK")
rejectButtonText: qsTr("Cancel")