Class Font

Class Font

Namespace: Aspose.Imaging.Xmp.Types.Complex.Font
Assembly: Aspose.Imaging.dll (25.2.0)

Represents XMP Font.

[JsonObject(MemberSerialization.OptIn)]
public sealed class Font : ComplexTypeBase, IXmpType, ICloneable

Inheritance

objectXmpTypeBaseComplexTypeBaseFont

Implements

IXmpType, ICloneable

Inherited Members

ComplexTypeBase.GetXmpRepresentation(), ComplexTypeBase.Prefix, ComplexTypeBase.NamespaceUri, XmpTypeBase.GetXmpRepresentation(), XmpTypeBase.ToString(), XmpTypeBase.Clone(), object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Constructors

Font()

Initializes a new instance of the Aspose.Imaging.Xmp.Types.Complex.Font.Font class.

[JsonConstructor]
public Font()

Font(string)

Initializes a new instance of the Aspose.Imaging.Xmp.Types.Complex.Font.Font class.

public Font(string fontFamily)

Parameters

fontFamily string

Font family.

Properties

ChildFontFiles

Gets or sets the array of file names for the fonts that make up a composite font.

[JsonProperty]
public string[] ChildFontFiles { get; set; }

Property Value

string[]

FontFace

Gets or sets the font face.

[JsonProperty]
public string FontFace { get; set; }

Property Value

string

FontFamily

Gets or sets the font family.

[JsonProperty]
public string FontFamily { get; set; }

Property Value

string

FontFileName

Gets or sets the font file name without full path.

[JsonProperty]
public string FontFileName { get; set; }

Property Value

string

FontName

Gets or sets the PostScript font name.

[JsonProperty]
public string FontName { get; set; }

Property Value

string

FontType

Gets or sets the font type.

[JsonProperty]
public string FontType { get; set; }

Property Value

string

Examples

TrueType, Type 1, Open Type, and so on.

IsComposite

Gets or sets a value indicating whether this font is composite.

[JsonProperty]
public bool IsComposite { get; set; }

Property Value

bool

Version

Gets or sets the font version.

[JsonProperty]
public string Version { get; set; }

Property Value

string

Examples

/version for Type1 fonts nameId 5 for Apple True Type and OpenType /CIDFontVersion for CID fonts The empty string for bitmap fonts

Methods

GetXmpRepresentation()

Gets the string contained value in XMP format.

public override string GetXmpRepresentation()

Returns

string

Returns the string contained value in XMP format.