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/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/72 นิ้ว)
style
FontStyle
ประเภทฟอนต์
คืนค่า
คืนค่า DrFont