|
@@ -410,12 +410,14 @@ extension KMEditPDFTextPropertyViewController: KMSelectPopButtonDelegate {
|
|
|
print("km_comboBoxSelectionDidChange")
|
|
|
} else if obj == fontNameVC {
|
|
|
self.updateFontNameAndStyle(name: obj.stringValue, style: fontStyle)
|
|
|
+ self.updatePreviewImage()
|
|
|
} else if obj == fontSizeVC {
|
|
|
let size = CGFloat(Float((obj.stringValue.replacingOccurrences(of: "pt", with: "")))!)
|
|
|
self.updateFontSize(size: size)
|
|
|
self.updatePreviewImage()
|
|
|
} else if obj == fontStyleVC {
|
|
|
self.updateFontNameAndStyle(name: fontName, style: obj.stringValue)
|
|
|
+ self.updatePreviewImage()
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -649,13 +651,13 @@ extension KMEditPDFTextPropertyViewController {
|
|
|
let editingSelectionAlignment = self.listView.editingSelectionAlignment()
|
|
|
|
|
|
|
|
|
- var string = NSLocalizedString("example", comment: "")
|
|
|
+ let string = NSLocalizedString("Sample", comment: "")
|
|
|
let style = NSMutableParagraphStyle()
|
|
|
style.alignment = alignment
|
|
|
if count == 1 {
|
|
|
let areas = editringareas?.first
|
|
|
if areas is CPDFEditTextArea {
|
|
|
- string = editingSelectionString ?? NSLocalizedString("example", comment: "")
|
|
|
+// string = editingSelectionString ?? NSLocalizedString("Sample", comment: "")
|
|
|
style.alignment = editingSelectionAlignment
|
|
|
}
|
|
|
}
|