Class Font
Inheritance
System.Object
Font
Assembly: IronXL.dll
Syntax
public sealed class Font : Object
Constructors
Font(Font, FontStyle)
Declaration
public Font(Font prototype, FontStyle style)
Parameters
Font(Font, Single)
Declaration
public Font(Font prototype, float size)
Parameters
| Type |
Name |
Description |
| Font |
prototype |
|
| System.Single |
size |
|
Font(Font, Single, FontStyle)
Declaration
public Font(Font prototype, float size, FontStyle style)
Parameters
| Type |
Name |
Description |
| Font |
prototype |
|
| System.Single |
size |
|
| FontStyle |
style |
|
Font(FontFamily, Single)
Declaration
public Font(FontFamily family, float size)
Parameters
| Type |
Name |
Description |
| FontFamily |
family |
|
| System.Single |
size |
|
Font(FontFamily, Single, FontStyle)
Declaration
public Font(FontFamily family, float size, FontStyle style)
Parameters
Properties
Family
Declaration
public FontFamily Family { get; }
Property Value
FontMetrics
Declaration
public FontMetrics FontMetrics { get; }
Property Value
IsBold
Declaration
public bool IsBold { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
IsItalic
Declaration
public bool IsItalic { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
Name
Declaration
public string Name { get; }
Property Value
| Type |
Description |
| System.String |
|
Size
Declaration
public float Size { get; }
Property Value
| Type |
Description |
| System.Single |
|
Methods
TryGetGlyphs(CodePoint, ColorFontSupport, out IReadOnlyList<Glyph>)
Declaration
public bool TryGetGlyphs(CodePoint codePoint, ColorFontSupport support, out IReadOnlyList<Glyph> glyphs)
Parameters
Returns
| Type |
Description |
| System.Boolean |
|
TryGetGlyphs(CodePoint, TextAttributes, ColorFontSupport, out IReadOnlyList<Glyph>)
Declaration
public bool TryGetGlyphs(CodePoint codePoint, TextAttributes textAttributes, ColorFontSupport support, out IReadOnlyList<Glyph> glyphs)
Parameters
Returns
| Type |
Description |
| System.Boolean |
|
TryGetGlyphs(CodePoint, TextAttributes, LayoutMode, ColorFontSupport, out IReadOnlyList<Glyph>)
Declaration
public bool TryGetGlyphs(CodePoint codePoint, TextAttributes textAttributes, LayoutMode layoutMode, ColorFontSupport support, out IReadOnlyList<Glyph> glyphs)
Parameters
Returns
| Type |
Description |
| System.Boolean |
|
TryGetGlyphs(CodePoint, TextAttributes, TextDecorations, LayoutMode, ColorFontSupport, out IReadOnlyList<Glyph>)
Declaration
public bool TryGetGlyphs(CodePoint codePoint, TextAttributes textAttributes, TextDecorations textDecorations, LayoutMode layoutMode, ColorFontSupport support, out IReadOnlyList<Glyph> glyphs)
Parameters
Returns
| Type |
Description |
| System.Boolean |
|
TryGetGlyphs(CodePoint, out IReadOnlyList<Glyph>)
Declaration
public bool TryGetGlyphs(CodePoint codePoint, out IReadOnlyList<Glyph> glyphs)
Parameters
| Type |
Name |
Description |
| CodePoint |
codePoint |
|
| System.Collections.Generic.IReadOnlyList<Glyph> |
glyphs |
|
Returns
| Type |
Description |
| System.Boolean |
|
TryGetKerningOffset(Glyph, Glyph, Single, out <97166269-a6ac-4e8d-87ce-f146222703fd>Vector2)
Declaration
public bool TryGetKerningOffset(Glyph previous, Glyph current, float dpi, out < 97166269 - a6ac - 4e8d - 87 ce - f146222703fd > Vector2 vector)
Parameters
| Type |
Name |
Description |
| Glyph |
previous |
|
| Glyph |
current |
|
| System.Single |
dpi |
|
| System.Numerics.<97166269-a6ac-4e8d-87ce-f146222703fd>Vector2 |
vector |
|
Returns
| Type |
Description |
| System.Boolean |
|
TryGetPath(out String)
Declaration
public bool TryGetPath(out string path)
Parameters
| Type |
Name |
Description |
| System.String |
path |
|
Returns
| Type |
Description |
| System.Boolean |
|