ITrueTypeFont Interface
Declares methods for working with truetype font.

Namespace: Aspose.Html.Drawing
Assembly: Aspose.HTML (in Aspose.HTML.dll) Version: 20.9
Syntax
public interface ITrueTypeFont

The ITrueTypeFont type exposes the following members.

Properties
  NameDescription
Public propertyDataSize
Returns the size of the font data in bytes
Public propertyFamilyName
Get the name of the font family.
Public propertyFullFontName
This should be a combination of "FamilyName" and "SubFamilyName". Exception: if the font is "Regular" as indicated in "SubFamilyName", then use only the family name contained in "FamilyName". An exception to the above definition of Full font name is for Microsoft platform strings for CFF OpenType fonts: in this case, the Full font name string must be identical to the PostScript FontName in the CFF Name INDEX.
Public propertySubFamilyName
The Font Subfamily name distinguishes the font in a group with the same Font 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 (e.g. medium weight, not italic and fsSelection bit 6 set) should have the string "Regular" stored in this position.
Methods
  NameDescription
Public methodGetAscent
Returns the ascent, in design units. Corresponds to FontFamily.GetCellAscent.
Public methodGetData
Open the stream with font data. The caller is responsible for disposing the stream.
Public methodGetDescent
Returns the descent, in design units. Corresponds to FontFamily.GetCellDescent.
See Also