• 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 FontFamilyCollectionExtensions

    A readonly collection of fonts.

    Inheritance
    Object
    FontFamilyCollectionExtensions
    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 FontFamilyCollectionExtensions

    Methods

    | Improve this Doc View Source

    CreateFont(FontFamily, Single)

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

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

    The family.

    Single size

    The size.

    Returns
    Type Description
    Font

    Returns instance of the Font from the current collection.

    | Improve this Doc View Source

    CreateFont(FontFamily, Single, FontStyle)

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

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

    The family.

    Single size

    The size.

    FontStyle style

    The style.

    Returns
    Type Description
    Font

    Returns instance of the Font from the current collection.

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