110,546
社区成员
发帖
与我相关
我的任务
分享
// 获取系统全部字体
InstalledFontCollection Fonts = new InstalledFontCollection();
FontFamilies = Fonts.Families;
for (int i = FontFamilies.Length - 1; i > 0; i--)
{
xxx = FontFamilies[i].Name,
}
// 加粗、倾斜、下划线,'|'为组合
FontStyle fst = new FontStyle();
if (加粗) fst = FontStyle.Bold;
else fst = FontStyle.Regular;
if (倾斜) fst = fst | FontStyle.Italic;
if (下划线) fst = fst | FontStyle.Underline;
//应用
Font xx = new Font(....上面的项);