• Articles
  • API Documentation
Search Results for

    Show / Hide Table of Contents
    • SixLabors.Fonts
      • ColorFontSupport
      • Font
      • FontCollection
      • FontDescription
      • FontFamily
      • FontFamilyCollectionExtensions
      • FontInstance
      • FontRectangle
      • FontStyle
      • Glyph
      • GlyphColor
      • GlyphInstance
      • GlyphMetric
      • GlyphRendererParameters
      • GlyphType
      • HorizontalAlignment
      • IColorGlyphRenderer
      • IFontCollection
      • IFontInstance
      • IGlyphRenderer
      • IGlyphRendererExtensions
      • IReadOnlyFontCollection
      • IReadonlyFontCollectionExtensions
      • RendererOptions
      • SystemFonts
      • TextMeasurer
      • TextRenderer
      • VerticalAlignment
    • SixLabors.Fonts.Exceptions
      • FontException
      • FontFamilyNotFoundException
      • GlyphMissingException
      • InvalidFontFileException
      • InvalidFontTableException
      • MissingFontTableException

    Class IReadonlyFontCollectionExtensions

    A readonly collection of fonts.

    Inheritance
    Object
    IReadonlyFontCollectionExtensions
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: SixLabors.Fonts
    Assembly: SixLabors.Fonts.dll
    Syntax
    public static class IReadonlyFontCollectionExtensions

    Methods

    | Improve this Doc View Source

    CreateFont(IReadOnlyFontCollection, String, CultureInfo, Single)

    Create a new instance of the Font for the named font family with regular styling.

    Declaration
    public static Font CreateFont(this IReadOnlyFontCollection collection, string fontFamily, CultureInfo culture, float size)
    Parameters
    Type Name Description
    IReadOnlyFontCollection collection

    The the ont collection to retrieve the font family from.

    String fontFamily

    The family.

    CultureInfo culture

    The culture of the retuend font family

    Single size

    The size.

    Returns
    Type Description
    Font

    The font for the representing the configured options.

    | Improve this Doc View Source

    CreateFont(IReadOnlyFontCollection, String, CultureInfo, Single, FontStyle)

    Create a new instance of the Font for the named font family.

    Declaration
    public static Font CreateFont(this IReadOnlyFontCollection collection, string fontFamily, CultureInfo culture, float size, FontStyle style)
    Parameters
    Type Name Description
    IReadOnlyFontCollection collection

    The the ont collection to retrieve the font family from.

    String fontFamily

    The family.

    CultureInfo culture

    The culture of the retuend font family

    Single size

    The size.

    FontStyle style

    The style.

    Returns
    Type Description
    Font

    The font for the representing the configured options.

    | Improve this Doc View Source

    CreateFont(IReadOnlyFontCollection, String, Single)

    Create a new instance of the Font for the named font family with regular styling.

    Declaration
    public static Font CreateFont(this IReadOnlyFontCollection collection, string fontFamily, float size)
    Parameters
    Type Name Description
    IReadOnlyFontCollection collection

    The the ont collection to retrieve the font family from.

    String fontFamily

    The family.

    Single size

    The size.

    Returns
    Type Description
    Font

    The font for the representing the configured options.

    | Improve this Doc View Source

    CreateFont(IReadOnlyFontCollection, String, Single, FontStyle)

    Create a new instance of the Font for the named font family.

    Declaration
    public static Font CreateFont(this IReadOnlyFontCollection collection, string fontFamily, float size, FontStyle style)
    Parameters
    Type Name Description
    IReadOnlyFontCollection collection

    The the ont collection to retrieve the font family from.

    String fontFamily

    The family.

    Single size

    The size.

    FontStyle style

    The style.

    Returns
    Type Description
    Font

    The font for the representing the configured options.

    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX