• 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
      • GlyphMetrics
      • GlyphMissingException
      • GlyphRendererParameters
      • GlyphType
      • HintingMode
      • HorizontalAlignment
      • IColorGlyphRenderer
      • IFontCollection
      • IGlyphDecorationRenderer
      • IGlyphRenderer
      • IGlyphRendererExtensions
      • InvalidFontFileException
      • InvalidFontTableException
      • IReadOnlyFontCollection
      • IReadOnlySystemFontCollection
      • KerningMode
      • LayoutMode
      • MissingFontTableException
      • SystemFonts
      • TextAlignment
      • TextAttributes
      • TextDecorations
      • TextDirection
      • TextJustification
      • TextMeasurer
      • TextOptions
      • TextRenderer
      • TextRun
      • VerticalAlignment
      • WordBreaking
    • SixLabors.Fonts.Tables.AdvancedTypographic
      • FeatureTags
      • GlyphClassDef
      • Tag
    • SixLabors.Fonts.Tables.TrueType
      • TrueTypeGlyphMetrics
    • SixLabors.Fonts.Tables.TrueType.Glyphs
      • GlyphOutline
    • SixLabors.Fonts.Unicode
      • BidiCharacterType
      • BidiClass
      • BidiPairedBracketType
      • CodePoint
      • GraphemeClusterClass
      • JoiningClass
      • JoiningGroup
      • JoiningType
      • LineBreakClass
      • MemoryExtensions
      • ScriptClass
      • SpanCodePointEnumerator
      • SpanGraphemeEnumerator
    • SixLabors.Fonts.WellKnownIds
      • KnownNameIds

    Struct FontFamily

    Defines a group of type faces having a similar basic design and certain variations in styles.

    Implements
    IEquatable<FontFamily>
    Inherited Members
    Object.Equals(Object, Object)
    Object.GetType()
    Object.ReferenceEquals(Object, Object)
    Namespace: SixLabors.Fonts
    Assembly: SixLabors.Fonts.dll
    Syntax
    public struct FontFamily : IEquatable<FontFamily>

    Properties

    | Improve this Doc View Source

    Culture

    Gets the culture this instance was extracted against.

    Declaration
    public readonly CultureInfo Culture { get; }
    Property Value
    Type Description
    CultureInfo
    | Improve this Doc View Source

    Name

    Gets the name.

    Declaration
    public readonly string Name { get; }
    Property Value
    Type Description
    String

    Methods

    | Improve this Doc View Source

    CreateFont(Single)

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

    Declaration
    public Font CreateFont(float size)
    Parameters
    Type Name Description
    Single size

    The size of the font in PT units.

    Returns
    Type Description
    Font

    The new Font.

    | Improve this Doc View Source

    CreateFont(Single, FontStyle)

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

    Declaration
    public Font CreateFont(float size, FontStyle style)
    Parameters
    Type Name Description
    Single size

    The size of the font in PT units.

    FontStyle style

    The font style.

    Returns
    Type Description
    Font

    The new Font.

    | Improve this Doc View Source

    Equals(FontFamily)

    Declaration
    public bool Equals(FontFamily other)
    Parameters
    Type Name Description
    FontFamily other
    Returns
    Type Description
    Boolean
    | Improve this Doc View Source

    Equals(Object)

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    Object obj
    Returns
    Type Description
    Boolean
    Overrides
    ValueType.Equals(Object)
    | Improve this Doc View Source

    GetAvailableStyles()

    Gets the collection of FontStyle that are currently available.

    Declaration
    public IEnumerable<FontStyle> GetAvailableStyles()
    Returns
    Type Description
    IEnumerable<FontStyle>

    The IEnumerable<T>.

    | Improve this Doc View Source

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    Int32
    Overrides
    ValueType.GetHashCode()
    | Improve this Doc View Source

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    String
    Overrides
    ValueType.ToString()
    | Improve this Doc View Source

    TryGetPaths(out IEnumerable<String>)

    Gets the collection of filesystem paths to the font family sources.

    Declaration
    public bool TryGetPaths(out IEnumerable<string> paths)
    Parameters
    Type Name Description
    IEnumerable<String> paths

    When this method returns, contains the filesystem paths to the font family sources, if the path exists; otherwise, an empty value for the type of the paths parameter. This parameter is passed uninitialized.

    Returns
    Type Description
    Boolean

    true if the FontFamily was created via filesystem paths; otherwise, false.

    Operators

    | Improve this Doc View Source

    Equality(FontFamily, FontFamily)

    Compares two FontFamily objects for equality.

    Declaration
    public static bool operator ==(FontFamily left, FontFamily right)
    Parameters
    Type Name Description
    FontFamily left

    The FontFamily on the left side of the operand.

    FontFamily right

    The FontFamily on the right side of the operand.

    Returns
    Type Description
    Boolean

    true if the current left is equal to the right parameter; otherwise, false.

    | Improve this Doc View Source

    Inequality(FontFamily, FontFamily)

    Compares two FontFamily objects for inequality.

    Declaration
    public static bool operator !=(FontFamily left, FontFamily right)
    Parameters
    Type Name Description
    FontFamily left

    The FontFamily on the left side of the operand.

    FontFamily right

    The FontFamily on the right side of the operand.

    Returns
    Type Description
    Boolean

    true if the current left is unequal to the right parameter; otherwise, false.

    Implements

    System.IEquatable<T>
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX