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

    Defines a group of type faces having a similar basic design and certain variations in styles. This class cannot be inherited.

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

    Properties

    | Improve this Doc View Source

    AvailableStyles

    Gets the available FontStyle that are currently available.

    Declaration
    public IEnumerable<FontStyle> AvailableStyles { get; }
    Property Value
    Type Description
    IEnumerable<FontStyle>

    The available styles.

    | Improve this Doc View Source

    Culture

    Gets the culture this FontFamily was created against.

    Declaration
    public CultureInfo Culture { get; }
    Property Value
    Type Description
    CultureInfo

    The name.

    | Improve this Doc View Source

    Name

    Gets the name of the FontFamily.

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

    The name.

    Methods

    | 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
    Object.Equals(Object)
    | Improve this Doc View Source

    GetHashCode()

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

    IsStyleAvailable(FontStyle)

    Determines whether the specified FontStyle is available.

    Declaration
    public bool IsStyleAvailable(FontStyle style)
    Parameters
    Type Name Description
    FontStyle style

    The style.

    Returns
    Type Description
    Boolean

    true if the specified FontStyle is available; otherwise, false.

    | Improve this Doc View Source

    ToString()

    Returns a String that represents this instance.

    Declaration
    public override string ToString()
    Returns
    Type Description
    String

    A String that represents this instance.

    Overrides
    Object.ToString()

    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>

    Extension Methods

    FontFamilyCollectionExtensions.CreateFont(FontFamily, Single, FontStyle)
    FontFamilyCollectionExtensions.CreateFont(FontFamily, Single)
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX