OSDN Git Service

Version: 0.4
[fontmanager/fontmanager.git] / qml / fontmanager / InstalledFontInfoPage.qml
index dacf091..691cbf9 100644 (file)
@@ -51,7 +51,7 @@ Page {
         if (fontProperty.modified) {
             fontProperty.save()
             controller.updateFontsConf(fontInfo)
-            controller.saveFontsConf()
+//            controller.saveFontsConf()
         }
     }
 
@@ -96,8 +96,8 @@ Page {
                 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
@@ -163,7 +163,7 @@ Page {
         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")