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
object ← XmpTypeBase ← ComplexTypeBase ← Font
Implements
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
FontFamily
Gets or sets the font family.
[JsonProperty]
public string FontFamily { get; set; }
Property Value
FontFileName
Gets or sets the font file name without full path.
[JsonProperty]
public string FontFileName { get; set; }
Property Value
FontName
Gets or sets the PostScript font name.
[JsonProperty]
public string FontName { get; set; }
Property Value
FontType
Gets or sets the font type.
[JsonProperty]
public string FontType { get; set; }
Property Value
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
Version
Gets or sets the font version.
[JsonProperty]
public string Version { get; set; }
Property Value
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
Returns the string contained value in XMP format.