using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Media; namespace PDF_Office.Model.PropertyPanel.AnnotPanel { public class FontStyleItem { public string mTag { get; set; } public string mTagContent { get; set; } public int mFontSize { get; set; } public FontFamily mFontFamily { get; set; } public FontStyle mFontStyle { get; set; } public FontWeight mFontWeight { get; set; } } public class LoadFontStyle { public static List Load() { List fontStyleList = new List(); FontStyleItem custom = new FontStyleItem(); custom.mTag = "custom"; custom.mTagContent = "自定义"; custom.mFontSize = 24; custom.mFontFamily = new FontFamily("Helvatica"); custom.mFontStyle = FontStyles.Normal; custom.mFontWeight = FontWeights.Normal; FontStyleItem h1 = new FontStyleItem(); h1.mTag = "H1"; h1.mTagContent = "H1大标题"; h1.mFontSize = 36; h1.mFontFamily = new FontFamily("Helvatica"); h1.mFontStyle = FontStyles.Normal; h1.mFontWeight = FontWeights.Normal; FontStyleItem h2 = new FontStyleItem(); h2.mTag = "H2"; h2.mTagContent = "h2(标准)"; h2.mFontSize = 1248; h2.mFontFamily = new FontFamily("Helvatica"); h2.mFontStyle = FontStyles.Normal; h2.mFontWeight = FontWeights.Bold; FontStyleItem h3 = new FontStyleItem(); h3.mTag = "H3"; h3.mTagContent = "H3小标题"; h3.mFontSize = 18; h3.mFontFamily = new FontFamily("Helvatica"); h3.mFontStyle = FontStyles.Normal; h3.mFontWeight = FontWeights.Bold; FontStyleItem b1 = new FontStyleItem(); b1.mTag = "B1"; b1.mTagContent = "B1标题"; b1.mFontSize = 14; b1.mFontFamily = new FontFamily("Helvatica"); b1.mFontStyle = FontStyles.Normal; b1.mFontWeight = FontWeights.Normal; FontStyleItem b2 = new FontStyleItem(); b2.mTag = "B2"; b2.mTagContent = "B2标题"; b2.mFontSize = 12; b2.mFontFamily = new FontFamily("Helvatica"); b2.mFontStyle = FontStyles.Normal; b2.mFontWeight = FontWeights.Normal; FontStyleItem b3 = new FontStyleItem(); b3.mTag = "B3"; b3.mTagContent = "B3标题"; b3.mFontSize = 11; b3.mFontFamily = new FontFamily("Helvatica"); b3.mFontStyle = FontStyles.Normal; b3.mFontWeight = FontWeights.Normal; fontStyleList.Add(custom); fontStyleList.Add(h1); fontStyleList.Add(h2); fontStyleList.Add(h3); fontStyleList.Add(b1); fontStyleList.Add(b2); fontStyleList.Add(b3); return fontStyleList; } } }