|
@@ -6,6 +6,7 @@ using PDFSettings;
|
|
using Prism.Mvvm;
|
|
using Prism.Mvvm;
|
|
using System;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Collections.Generic;
|
|
|
|
+using System.ComponentModel;
|
|
using System.Linq;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Threading.Tasks;
|
|
@@ -33,128 +34,23 @@ namespace PDF_Master.Model.AnnotPanel
|
|
protected event EventHandler<FontSetModeType> ChangedValue;
|
|
protected event EventHandler<FontSetModeType> ChangedValue;
|
|
|
|
|
|
protected bool IsCanSave = false;
|
|
protected bool IsCanSave = false;
|
|
- public List<ComboDataItem> FontFamilyItems { get; protected set; }
|
|
|
|
|
|
+
|
|
|
|
+ private List<ComboDataItem> _fontFamilyItems;
|
|
|
|
+
|
|
|
|
+ public List<ComboDataItem> FontFamilyItems
|
|
|
|
+ {
|
|
|
|
+ get { return _fontFamilyItems; }
|
|
|
|
+ set
|
|
|
|
+ {
|
|
|
|
+ SetProperty(ref _fontFamilyItems, value);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
public List<ComboDataItem> FontStyleItems { get; protected set; }
|
|
public List<ComboDataItem> FontStyleItems { get; protected set; }
|
|
public List<ComboDataItem> FontSizeItems { get; protected set; }
|
|
public List<ComboDataItem> FontSizeItems { get; protected set; }
|
|
public List<ComboDataItem> PresetFontItems { get; protected set; }
|
|
public List<ComboDataItem> PresetFontItems { get; protected set; }
|
|
|
|
|
|
public List<PresetFontItem> PresetFontList = new List<PresetFontItem>();
|
|
public List<PresetFontItem> PresetFontList = new List<PresetFontItem>();
|
|
|
|
|
|
- public List<string> FontFamily { get; set; } = new List<string>
|
|
|
|
-{
|
|
|
|
- "Adobe Devanagari",
|
|
|
|
- "Arial",
|
|
|
|
- "Arial Black",
|
|
|
|
- "Arvo",
|
|
|
|
- "Bahnschrift",
|
|
|
|
- "Bahnschrift Condensed",
|
|
|
|
- "Bahnschrift Light Condensed",
|
|
|
|
- "Bahnschrift Light SemiCondensed",
|
|
|
|
- "Bahnschrift SemiBold Condensed",
|
|
|
|
- "Bahnschrift SemiCondensed",
|
|
|
|
- "Bahnschrift SemiLight",
|
|
|
|
- "Bahnschrift SemiLight Condensed",
|
|
|
|
- "Calibri",
|
|
|
|
- "Cambria",
|
|
|
|
- "Cambria Math",
|
|
|
|
- "Candara",
|
|
|
|
- "Cascadia Code",
|
|
|
|
- "Cascadia Code SemiLight",
|
|
|
|
- "Cascadia Mono",
|
|
|
|
- "Cascadia Mono SemiLight",
|
|
|
|
- "Comic Sans MS",
|
|
|
|
- "Consolas",
|
|
|
|
- "Constantia",
|
|
|
|
- "Corbel",
|
|
|
|
- "Courier New",
|
|
|
|
- "DejaVu Math TeX Gyre",
|
|
|
|
- "Droid Serif",
|
|
|
|
- "Ebrima",
|
|
|
|
- "Franklin Gothic",
|
|
|
|
- "Gabriola",
|
|
|
|
- "Gadugi",
|
|
|
|
- "Georgia",
|
|
|
|
- "HoloLens MDL2 Assets",
|
|
|
|
- "Impact",
|
|
|
|
- "Indie Flower",
|
|
|
|
- "Ink Free",
|
|
|
|
- "Javanese Text",
|
|
|
|
- "Leelawadee UI",
|
|
|
|
- "Leelawadee UI Semilight",
|
|
|
|
- "Lobster",
|
|
|
|
- "Lucida Console",
|
|
|
|
- "Lucida Sans Unicode",
|
|
|
|
- "MS Gothic",
|
|
|
|
- "MS PGothic",
|
|
|
|
- "MS UI Gothic",
|
|
|
|
- "MT Extra",
|
|
|
|
- "MV Boli",
|
|
|
|
- "Malgun Gothic",
|
|
|
|
- "Malgun Gothic Semilight",
|
|
|
|
- "Marlett",
|
|
|
|
- "Microsoft Himalaya",
|
|
|
|
- "Microsoft JhengHei",
|
|
|
|
- "Microsoft JhengHei UI",
|
|
|
|
- "Microsoft New Tai Lue",
|
|
|
|
- "Microsoft PhagsPa",
|
|
|
|
- "Microsoft Sans Serif",
|
|
|
|
- "Microsoft Tai Le",
|
|
|
|
- "Microsoft YaHei UI",
|
|
|
|
- "Microsoft Yi Baiti",
|
|
|
|
- "MingLiU-ExtB",
|
|
|
|
- "MingLiU_HKSCS-ExtB",
|
|
|
|
- "Mongolian Baiti",
|
|
|
|
- "Myanmar Text",
|
|
|
|
- "Nirmala UI",
|
|
|
|
- "Nirmala UI Semilight",
|
|
|
|
- "Open Sans",
|
|
|
|
- "PMingLiU-ExtB",
|
|
|
|
- "Palatino Linotype",
|
|
|
|
- "Poiret One",
|
|
|
|
- "Raleway",
|
|
|
|
- "Roboto",
|
|
|
|
- "Roboto Condensed",
|
|
|
|
- "Roboto Slab",
|
|
|
|
- "Sans Serif Collection",
|
|
|
|
- "Segoe Fluent Icons",
|
|
|
|
- "Segoe MDL2 Assets",
|
|
|
|
- "Segoe Print",
|
|
|
|
- "Segoe Script",
|
|
|
|
- "Segoe UI",
|
|
|
|
- "Segoe UI Black",
|
|
|
|
- "Segoe UI Emoji",
|
|
|
|
- "Segoe UI Historic",
|
|
|
|
- "Segoe UI Semilight",
|
|
|
|
- "Segoe UI Symbol",
|
|
|
|
- "Segoe UI Variable Display",
|
|
|
|
- "Segoe UI Variable Small",
|
|
|
|
- "Segoe UI Variable Text",
|
|
|
|
- "SimSun-ExtB",
|
|
|
|
- "Sitka Banner",
|
|
|
|
- "Sitka Display",
|
|
|
|
- "Sitka Heading",
|
|
|
|
- "Sitka Small",
|
|
|
|
- "Sitka Subheading",
|
|
|
|
- "Sitka Text",
|
|
|
|
- "Sylfaen",
|
|
|
|
- "Symbol",
|
|
|
|
- "Tahoma",
|
|
|
|
- "Times New",
|
|
|
|
- "Trebuchet MS",
|
|
|
|
- "Verdana",
|
|
|
|
- "Webdings",
|
|
|
|
- "Wingdings",
|
|
|
|
- "Yu Gothic",
|
|
|
|
- "Yu Gothic UI",
|
|
|
|
- "Yu Gothic UI Semilight",
|
|
|
|
- "ZWAdobeF",
|
|
|
|
- "等线",
|
|
|
|
- "仿宋",
|
|
|
|
- "黑体",
|
|
|
|
- "楷体",
|
|
|
|
- "宋体",
|
|
|
|
- "微软雅黑"
|
|
|
|
-};
|
|
|
|
|
|
|
|
#endregion 变量
|
|
#endregion 变量
|
|
|
|
|
|
@@ -188,7 +84,7 @@ namespace PDF_Master.Model.AnnotPanel
|
|
|
|
|
|
//字体
|
|
//字体
|
|
public void InitBase_FontFamilys()
|
|
public void InitBase_FontFamilys()
|
|
- {
|
|
|
|
|
|
+ {
|
|
FontFamilyItems = TextFont.GetFamilyEdit();
|
|
FontFamilyItems = TextFont.GetFamilyEdit();
|
|
}
|
|
}
|
|
|
|
|