ITrueTypeFont Interface

ITrueTypeFont interface

Declares methods for working with TrueType font.

public interface ITrueTypeFont


DataSize { get; }Returns the size of the font data in bytes
FamilyName { get; }Get the name of the font family.
FullFontName { get; }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.
SubFamilyName { get; }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.


GetAscent(float)Returns the ascent, in points.
GetData()Open the stream with font data. The caller is responsible for disposing the stream.
GetDescent(float)Returns the descent, in points.

See Also