|
@@ -79,10 +79,16 @@ namespace PDF_Master.Model.PropertyPanel.AnnotPanel
|
|
|
)
|
|
|
{
|
|
|
isCanSave = true;
|
|
|
- cacheItem.mFontFamily = new FontFamily(item.mFontFamily.Source);
|
|
|
- cacheItem.mFontSize = item.mFontSize;
|
|
|
- cacheItem.mFontStyle = item.mFontStyle;
|
|
|
- cacheItem.mFontWeight = item.mFontWeight;
|
|
|
+ var index = Settings.Default.PresetFontList.FindIndex(temp => temp.mTag == cacheItem.mTag);
|
|
|
+ if (index != -1)
|
|
|
+ {
|
|
|
+ Settings.Default.PresetFontList.Remove(cacheItem);
|
|
|
+ Settings.Default.PresetFontList.Insert(index, item);
|
|
|
+ }
|
|
|
+ //cacheItem.mFontFamily = new FontFamily(item.mFontFamily.Source);
|
|
|
+ //cacheItem.mFontSize = item.mFontSize;
|
|
|
+ //cacheItem.mFontStyle = item.mFontStyle;
|
|
|
+ //cacheItem.mFontWeight = item.mFontWeight;
|
|
|
|
|
|
break;
|
|
|
}
|
|
@@ -99,7 +105,7 @@ namespace PDF_Master.Model.PropertyPanel.AnnotPanel
|
|
|
}
|
|
|
|
|
|
if (isCanSave)
|
|
|
- Settings.Default.Save();
|
|
|
+ Settings.Default.Save();
|
|
|
}
|
|
|
|
|
|
public static void BackDefaultPresetFontStyle(string tag)
|