Interface ITrueTypeFont
Namespace: Aspose.Html.Drawing
Assembly: Aspose.HTML.dll (25.2.0)
Declares methods for working with TrueType fonts.
[ComVisible(true)]
public interface ITrueTypeFont
Properties
DataSize
Gets the size of the font data in bytes.
float DataSize { get; }
Property Value
FamilyName
Gets the name of the font family.
string FamilyName { get; }
Property Value
FullFontName
Full font name is generally represented as combination of Family and Subfamily names.
string FullFontName { get; }
Property Value
SubFamilyName
The Subfamily name distinguishes the font in a group with the same Family name. This is assumed to address style (italic, oblique) and weight (light, bold, black, etc.). A font with no particular differences in weight or style should have the string “Regular”.
string SubFamilyName { get; }
Property Value
Methods
GetAscent(float)
Gets the ascent of the font in points using the specified font size.
float GetAscent(float fontSize)
Parameters
fontSize
float
The size of the font.
Returns
The ascent of the font in points.
GetData()
Opens the stream with the font data. The caller is responsible for disposing the stream.
Stream GetData()
Returns
The stream with the font data.
GetDescent(float)
Gets the descent of the font in points using the specified font size.
float GetDescent(float fontSize)
Parameters
fontSize
float
The size of the font.
Returns
The descent of the font in points.