Class FontExtensions
Font extensions.
Inherited Members
Namespace: Forms9Patch
Assembly: Forms9Patch.dll
Syntax
public static class FontExtensions
Methods
InMathAlphanumericBlock(Int32)
Is Int32 char in the Unicode math alphanumeric block.
Declaration
public static bool InMathAlphanumericBlock(this int utf32Char)
Parameters
| Type | Name | Description |
|---|---|---|
| Int32 | utf32Char | Utf32 char. |
Returns
| Type | Description |
|---|---|
| Boolean |
|
LineHeight(IFontElement)
Height of a line of text for the given font.
Declaration
public static double LineHeight(this IFontElement element)
Parameters
| Type | Name | Description |
|---|---|---|
| IFontElement | element | Element. |
Returns
| Type | Description |
|---|---|
| Double | The height. |
LineHeight(String, Double, FontAttributes)
Height of a line of text for the given font.
Declaration
public static double LineHeight(string fontFamily, double fontSize, FontAttributes fontAttributes)
Parameters
| Type | Name | Description |
|---|---|---|
| String | fontFamily | Font family. |
| Double | fontSize | Font size. |
| FontAttributes | fontAttributes | Font attributes. |
Returns
| Type | Description |
|---|---|
| Double | The height. |
LineHeight(Font)
Height of a line of text for the given font.
Declaration
public static double LineHeight(this Font font)
Parameters
| Type | Name | Description |
|---|---|---|
| Font | font | Font. |
Returns
| Type | Description |
|---|---|
| Double | The height. |
LineSpace(IFontElement)
Lines the space.
Declaration
public static double LineSpace(this IFontElement element)
Parameters
| Type | Name | Description |
|---|---|---|
| IFontElement | element | Element. |
Returns
| Type | Description |
|---|---|
| Double | The space. |
LineSpace(String, Double, FontAttributes)
Lines the space.
Declaration
public static double LineSpace(string fontFamily, double fontSize, FontAttributes fontAttributes)
Parameters
| Type | Name | Description |
|---|---|---|
| String | fontFamily | Font family. |
| Double | fontSize | Font size. |
| FontAttributes | fontAttributes | Font attributes. |
Returns
| Type | Description |
|---|---|
| Double | The space. |
LineSpace(Font)
Lines the space.
Declaration
public static double LineSpace(this Font font)
Parameters
| Type | Name | Description |
|---|---|---|
| Font | font | Font. |
Returns
| Type | Description |
|---|---|
| Double | The space. |
LoadedFontFamilies()
Provides a list of the currently loaded font families (included embedded resources) that are available.
Declaration
public static List<string> LoadedFontFamilies()
Returns
| Type | Description |
|---|---|
| List<String> | The font families. |