|
@@ -578,10 +578,22 @@ extension KMEditPDFTextPropertyViewController {
|
|
|
fontName = name
|
|
|
}
|
|
|
|
|
|
+
|
|
|
//数据保存返回
|
|
|
if self.selectAreas.count > 0 {
|
|
|
if needChangeListView {
|
|
|
self.listView.setEditingSelectionFontName(fontName, with: self.selectAreas.first as? CPDFEditTextArea)
|
|
|
+ if styleString.contains("Bold") {
|
|
|
+ self.listView.setCurrentSelectionIsBold(true, with: self.selectAreas.first as? CPDFEditTextArea)
|
|
|
+ } else {
|
|
|
+ self.listView.setCurrentSelectionIsBold(false, with: self.selectAreas.first as? CPDFEditTextArea)
|
|
|
+ }
|
|
|
+
|
|
|
+ if styleString.contains("Oblique") || styleString.contains("Italic") {
|
|
|
+ self.listView.setCurrentSelectionIsItalic(true, with: self.selectAreas.first as? CPDFEditTextArea)
|
|
|
+ } else {
|
|
|
+ self.listView.setCurrentSelectionIsItalic(false, with: self.selectAreas.first as? CPDFEditTextArea)
|
|
|
+ }
|
|
|
}
|
|
|
} else {
|
|
|
let model = KMEditPDFTextManager.manager.fetchUserDefaultData(type: .commonly)
|