c#的Font和FontFamily各是什么?

fontfamily 就是像是word中的字体

font是fontfamily +大小+修饰

例如:

下面的示例构造一个字号为 16 像素、常规字形的 Arial 字体。
在下面的代码中,传递给 Font 构造函数的第一个参数是 FontFamily 对象。
第二个参数指定字体的大小,其单位由第四个参数确定。第三个参数确定字形。
FontFamily fontFamily = new FontFamily("Arial");
Font font
= new Font( fontFamily, 16, FontStyle.Regular, GraphicsUnit.Pixel);
FontFamily 对象指定字样(例如 Arial),而 Font 对象指定字号、字形和单位
原文地址:https://www.cnblogs.com/strive-19970713/p/13796723.html