Class ExternalFontCache
Namespace: Aspose.Page
Assembly: Aspose.Page.dll (25.1.2)
Verwenden Sie diese Klasse, um die Schriftartenkapselung in einem Format zu erhalten, das von Aspose.Page.Device akzeptiert wird.
public class ExternalFontCache
Vererbung
Vererbte Mitglieder
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Konstruktoren
ExternalFontCache()
public ExternalFontCache()
Methoden
CreateFontByFamilyName(string, float, FontStyle)
Erstellt System.Drawing.Font anhand des Schriftfamiliennamens, Stils und der Größe.
public static Font CreateFontByFamilyName(string familyName, float size, FontStyle style)
Parameter
familyName
string
Name der Schriftfamilie.
size
float
Schriftgröße in Punkten (ein Punkt entspricht 1/72 Zoll).
style
FontStyle
Schriftstil.
Rückgabewert
Gibt das Font-Objekt zurück.
FetchDrFont(string, float, FontStyle)
Holt Aspose.Page.Font.DrFont anhand des Schriftfamiliennamens, der Größe und des Stils.
public static DrFont FetchDrFont(string familyName, float sizePoints, FontStyle style)
Parameter
familyName
string
Name der Schriftfamilie.
sizePoints
float
Schriftgröße in Punkten (ein Punkt entspricht 1/72 Zoll).
style
FontStyle
Schriftstil.
Rückgabewert
Gibt DrFont zurück.