Class ExternalFontCache
Class ExternalFontCache
Namespace: Aspose.Page
Assembly: Aspose.Page.dll (25.1.2)
使用此类获取Aspose.Page.Device接受的字体封装形式。
public class ExternalFontCache
继承
继承成员
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
构造函数
ExternalFontCache()
public ExternalFontCache()
方法
CreateFontByFamilyName(string, float, FontStyle)
通过字体系列名称、样式和大小创建System.Drawing.Font。
public static Font CreateFontByFamilyName(string familyName, float size, FontStyle style)
参数
familyName
string
字体系列名称。
size
float
字体大小(以点为单位,1点为1/72英寸)。
style
FontStyle
字体样式。
返回
返回Font对象。
FetchDrFont(string, float, FontStyle)
通过字体系列名称、大小和样式获取Aspose.Page.Font.DrFont。
public static DrFont FetchDrFont(string familyName, float sizePoints, FontStyle style)
参数
familyName
string
字体系列名称。
sizePoints
float
字体大小(以点为单位,1点为1/72英寸)。
style
FontStyle
字体样式。
返回
返回DrFont。