Search Results for

    Show / Hide Table of Contents

    Class Font

    Inheritance
    System.Object
    Font
    Namespace: SixLabors.Fonts
    Assembly: IronXL.dll
    Syntax
    public sealed class Font : Object

    Constructors

    Font(Font, FontStyle)

    Declaration
    public Font(Font prototype, FontStyle style)
    Parameters
    Type Name Description
    Font prototype
    FontStyle style

    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
    Type Name Description
    FontFamily family
    System.Single size
    FontStyle style

    Properties

    Family

    Declaration
    public FontFamily Family { get; }
    Property Value
    Type Description
    FontFamily

    FontMetrics

    Declaration
    public FontMetrics FontMetrics { get; }
    Property Value
    Type Description
    FontMetrics

    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
    Type Name Description
    CodePoint codePoint
    ColorFontSupport support
    System.Collections.Generic.IReadOnlyList<Glyph> glyphs
    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
    Type Name Description
    CodePoint codePoint
    TextAttributes textAttributes
    ColorFontSupport support
    System.Collections.Generic.IReadOnlyList<Glyph> glyphs
    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
    Type Name Description
    CodePoint codePoint
    TextAttributes textAttributes
    LayoutMode layoutMode
    ColorFontSupport support
    System.Collections.Generic.IReadOnlyList<Glyph> glyphs
    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
    Type Name Description
    CodePoint codePoint
    TextAttributes textAttributes
    TextDecorations textDecorations
    LayoutMode layoutMode
    ColorFontSupport support
    System.Collections.Generic.IReadOnlyList<Glyph> glyphs
    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
    ☀
    ☾
    Downloads
    • Download with Nuget
    • Free 30-Day Trial Key
    In This Article
    Back to top
    Install with Nuget
    Want to deploy IronXL to a live project for FREE?
    What’s included?
    30 days of fully-functional product
    Test and share in a live environment
    No watermarks in production
    Get your free 30-day Trial Key instantly.
    No credit card or account creation required
    Your Trial License Key has been emailed to you.
    Download IronXL free to apply
    your Trial Licenses Key
    Install with NuGet View Licenses
    Licenses from $499. Have a question? Get in touch.