Skip to content

IFont interface

Abstract interface for font resources.

public interface IFont : IDisposable
name description
Ascent { get; } Gets the font ascent in DIPs (distance from baseline to top of character cell).
CapHeight { get; } Gets the cap height in DIPs (height of flat capital letters such as ‘H’); falls back to Ascent * 0.7 when the font does not report it.
Descent { get; } Gets the font descent in DIPs (distance from baseline to bottom of character cell).
Family { get; } Gets the requested font family name: the family this font was created for, as the caller asked.
InternalLeading { get; } Gets the internal leading in DIPs (extra space above the ascent within the line height).
IsItalic { get; } Gets whether the font is italic.
IsStrikethrough { get; } Gets whether the font has strikethrough.
IsUnderline { get; } Gets whether the font has underline.
Size { get; } Gets the font size in DIPs.
Weight { get; } Gets the font weight.
XHeight { get; } Gets the x-height in DIPs (distance from the baseline to the top of a lowercase letter such as ‘x’).