Class ExternalFontCache

Class ExternalFontCache

名称: Aspose.Page 集合: Aspose.Page.dll (25.4.0)

使用此类以获得字体嵌入式的格式,由 Aspose.Page.Device 接受。

public class ExternalFontCache

Inheritance

object ExternalFontCache

继承人

object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Constructors

ExternalFontCache()

public ExternalFontCache()

Methods

CreateFontByFamilyName(字符串、字符串、字符串)

创建 System.Drawing.Font 按字体姓名、风格和尺寸。

public static Font CreateFontByFamilyName(string familyName, float size, FontStyle style)

Parameters

familyName string

写下家庭名称。

size float

字体尺寸在点(一个点是 1/72 英寸)。

style FontStyle

字体风格。

Returns

Font

返回字体对象。

FetchDrFont(字符串、字符串、字符串)

按字体家庭名称、尺寸和风格进行Fetches Aspose.Page.Font.DrFont。

public static DrFont FetchDrFont(string familyName, float sizePoints, FontStyle style)

Parameters

familyName string

写下家庭名称。

sizePoints float

字体尺寸在点(一个点是 1/72 英寸)。

style FontStyle

字体风格。

Returns

DrFont

返回 DrFont

 中文