• Articles
  • API Documentation
Search Results for

    Show / Hide Table of Contents
    • SixLabors.Fonts
      • ColorFontSupport
      • Font
      • FontCollection
      • FontCollectionExtensions
      • FontDescription
      • FontException
      • FontFamily
      • FontFamilyNotFoundException
      • FontMetrics
      • FontRectangle
      • FontStyle
      • Glyph
      • GlyphBounds
      • GlyphColor
      • GlyphLayoutMode
      • GlyphMetrics
      • GlyphMissingException
      • GlyphRendererParameters
      • GlyphType
      • HintingMode
      • HorizontalAlignment
      • HorizontalMetrics
      • IColorGlyphRenderer
      • IFontCollection
      • IGlyphRenderer
      • IGlyphRendererExtensions
      • IMetricsHeader
      • IReadOnlyFontCollection
      • IReadOnlySystemFontCollection
      • InvalidFontFileException
      • InvalidFontTableException
      • KerningMode
      • LayoutMode
      • LayoutModeExtensions
      • MissingFontTableException
      • SystemFonts
      • TextAlignment
      • TextAttributes
      • TextDecorations
      • TextDirection
      • TextJustification
      • TextMeasurer
      • TextOptions
      • TextRenderer
      • TextRun
      • VerticalAlignment
      • VerticalMetrics
      • WordBreaking
    • SixLabors.Fonts.Tables.AdvancedTypographic
      • FeatureTags
      • GlyphClassDef
      • Tag
    • SixLabors.Fonts.Tables.TrueType
      • TrueTypeGlyphMetrics
    • SixLabors.Fonts.Unicode
      • ArabicJoiningClass
      • ArabicJoiningGroup
      • ArabicJoiningType
      • BidiCharacterType
      • BidiClass
      • BidiPairedBracketType
      • CodePoint
      • GraphemeClusterClass
      • IndicPositionalCategory
      • IndicSyllabicCategory
      • LineBreakClass
      • MemoryExtensions
      • ScriptClass
      • SpanCodePointEnumerator
      • SpanGraphemeEnumerator
      • VerticalOrientationType
    • SixLabors.Fonts.WellKnownIds
      • KnownNameIds

    Class FontDescription

    Provides basic descriptive metadata for the font.

    Inheritance
    object
    FontDescription
    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 class FontDescription

    Properties

    | Edit this page View Source

    FontFamilyInvariantCulture

    Gets the name of the font family in the invariant culture.

    Declaration
    public string FontFamilyInvariantCulture { get; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    FontNameInvariantCulture

    Gets the name of the font in the invariant culture.

    Declaration
    public string FontNameInvariantCulture { get; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    FontSubFamilyNameInvariantCulture

    Gets the font sub family in the invariant culture.

    Declaration
    public string FontSubFamilyNameInvariantCulture { get; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    Style

    Gets the style.

    Declaration
    public FontStyle Style { get; }
    Property Value
    Type Description
    FontStyle

    Methods

    | Edit this page View Source

    FontFamily(CultureInfo)

    Gets the name of the font family.

    Declaration
    public string FontFamily(CultureInfo culture)
    Parameters
    Type Name Description
    CultureInfo culture

    The culture to load metadata in.

    Returns
    Type Description
    string

    The font family name.

    | Edit this page View Source

    FontName(CultureInfo)

    Gets the name of the font.

    Declaration
    public string FontName(CultureInfo culture)
    Parameters
    Type Name Description
    CultureInfo culture

    The culture to load metadata in.

    Returns
    Type Description
    string

    The font name.

    | Edit this page View Source

    FontSubFamilyName(CultureInfo)

    Gets the font sub family.

    Declaration
    public string FontSubFamilyName(CultureInfo culture)
    Parameters
    Type Name Description
    CultureInfo culture

    The culture to load metadata in.

    Returns
    Type Description
    string

    The font sub family name.

    | Edit this page View Source

    GetNameById(CultureInfo, KnownNameIds)

    Gets the name matching the given culture and id. If InvariantCulture is passed this method will return the first name matching the id.

    Declaration
    public string GetNameById(CultureInfo culture, KnownNameIds nameId)
    Parameters
    Type Name Description
    CultureInfo culture

    The culture to load metadata in.

    KnownNameIds nameId

    The name id to match.

    Returns
    Type Description
    string

    The string name.

    | Edit this page View Source

    LoadDescription(Stream)

    Reads a FontDescription from the specified stream.

    Declaration
    public static FontDescription LoadDescription(Stream stream)
    Parameters
    Type Name Description
    Stream stream

    The stream.

    Returns
    Type Description
    FontDescription

    a FontDescription.

    | Edit this page View Source

    LoadDescription(string)

    Reads a FontDescription from the specified stream.

    Declaration
    public static FontDescription LoadDescription(string path)
    Parameters
    Type Name Description
    string path

    The file path.

    Returns
    Type Description
    FontDescription

    a FontDescription.

    | Edit this page View Source

    LoadFontCollectionDescriptions(Stream)

    Reads all the FontDescriptions from the specified stream (typically a .ttc file like simsun.ttc).

    Declaration
    public static FontDescription[] LoadFontCollectionDescriptions(Stream stream)
    Parameters
    Type Name Description
    Stream stream

    The stream to read the font collection from.

    Returns
    Type Description
    FontDescription[]

    a FontDescription.

    | Edit this page View Source

    LoadFontCollectionDescriptions(string)

    Reads all the FontDescriptions from the file at the specified path (typically a .ttc file like simsun.ttc).

    Declaration
    public static FontDescription[] LoadFontCollectionDescriptions(string path)
    Parameters
    Type Name Description
    string path

    The file path.

    Returns
    Type Description
    FontDescription[]

    a FontDescription.

    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX