Font Class |
Namespace: Eto.Drawing
The Font type exposes the following members.
Name | Description | |
---|---|---|
Font(FontIHandler) |
Initializes a new instance of the Font class with the specified font handler | |
Font(FontTypeface, Single, FontDecoration) |
Initializes a new instance of the Font class with the specified typeface and size | |
Font(SystemFont, NullableSingle, FontDecoration) |
Creates a new instance of the Font class with a specified systemFont and optional custom size | |
Font(String, Single, FontStyle, FontDecoration) |
Creates a new instance of the Font class with a specified family, size, and style | |
Font(FontFamily, Single, FontStyle, FontDecoration) |
Creates a new instance of the Font class with a specified family, size, and style |
Name | Description | |
---|---|---|
Ascent |
Gets the top y co-ordinate from the baseline to the tallest character ascent
| |
Baseline |
Gets the offset of the baseline from the drawing point
| |
Bold |
Gets a value indicating that this font has a bold style
| |
Descent |
Gets the bottom y co-ordinate from the baseline to the longest character descent
| |
Family |
Gets the family information for this font
| |
FamilyName |
Gets the name of the family of this font
| |
FontDecoration |
Gets the decorations applied to the font
| |
FontStyle |
Gets the style flags for this font
| |
Italic |
Gets a value indicating that this font has an italic style
| |
Leading |
Gets the leading space between each line
| |
LineHeight |
Gets the height of a single line of the font
| |
Size |
Gets the size, in points, of this font
| |
Strikethrough |
Gets a value indicating that this font has a strikethrough decoration
| |
Typeface |
Gets the typeface information for this font
| |
Underline |
Gets a value indicating that this font has an underline decoration
| |
XHeight |
Gets the height of the lower case 'x' character
|
Name | Description | |
---|---|---|
Equals |
Determines whether the specified Object is equal to the current Font.
(Overrides ObjectEquals(Object).) | |
GetHashCode |
Serves as a hash function for a Font object.
(Overrides ObjectGetHashCode.) | |
MeasureString |
Measures the specified string to get its size in logical pixels.
| |
ToString |
Gets a string representation of the font object
(Overrides WidgetToString.) |