Class Font
Namespace: Aspose.Imaging.Xmp.Types.Complex.Font
Assembly: Aspose.Imaging.dll (25.7.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.
public Font(
[JsonConstructor]
string name = "",
FontFamily family = null,
float size = 0f,
FontStyle style = FontStyle.Regular,
Unit unit = Unit.Point,
string color = "black",
bool isBold = false,
bool isItalic = false,
int strikeout = 0,
int underline = 0,
float smallCapitals = 0f,
float outline = 0f,
float shadowBlur = 0f,
float shadowOffsetX = 0f,
float shadowOffsetY = 0f)
{
}
Font(string)
Initializes a new instance of the Aspose.Imaging.Xmp.Types.Complex.Font.Font class.
public Font(string fontFamily)
{
this.FontFamily = 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.
public string[] ChildFontFiles
{
get { return this.ChildFontFiles; }
set { this.ChildFontFiles = value; }
}
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.
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.
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 fontsnameId 5 for Apple True Type and OpenType/CIDFontVersion for CID fontsThe 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.