Namespace SixLabors.Fonts
Classes
Font
Defines a particular format for text, including font face, size, and style attributes. This class cannot be inherited.
FontCollection
Represents a collection of font families.
FontCollectionExtensions
Extension methods for IFontCollection.
FontDescription
Provides basic descriptive metadata for the font.
FontException
Base class for exceptions thrown by this library.
FontFamilyNotFoundException
Exception for detailing missing font families.
FontMetrics
Represents a font face with metrics, which is a set of glyphs with a specific style (regular, italic, bold etc).
GlyphMetrics
Represents a glyph metric from a particular font face.
GlyphMissingException
Exception for detailing missing font families.
HorizontalMetrics
Represent the metrics of a font face specific to horizontal text.
IGlyphRendererExtensions
A surface that can have a glyph rendered to it as a series of actions.
InvalidFontFileException
Exception font loading can throw if it encounters invalid data during font loading.
InvalidFontTableException
Exception font loading can throw if it encounters invalid data during font loading.
LayoutModeExtensions
Extensions to LayoutMode.
MissingFontTableException
Exception font loading can throw if it finds a required table is missing during font loading.
SystemFonts
Provides a collection of fonts.
TextMeasurer
Encapsulated logic for laying out and then measuring text properties.
TextOptions
Provides configuration options for rendering and shaping text.
TextRenderer
Encapsulated logic for laying out and then rendering text to a IGlyphRenderer surface.
TextRun
Represents a run of text spanning a series of graphemes within a string.
VerticalMetrics
Represent the metrics of a font face specific to vertical text.
Structs
FontFamily
Defines a group of type faces having a similar basic design and certain variations in styles.
FontRectangle
Stores a set of four single precision floating points that represent the location and size of a rectangle.
Glyph
A glyph from a particular font face.
GlyphBounds
GlyphColor
Provides access to the color details for the current glyph.
GlyphRendererParameters
The combined set of properties that uniquely identify the glyph that is to be rendered at a particular size and dpi.
Interfaces
IColorGlyphRenderer
A surface that can have a glyph rendered to it as a series of actions, where the engine support colored glyphs (emoji).
IFontCollection
A readable and writable collection of fonts.
IGlyphRenderer
A surface that can have a glyph rendered to it as a series of actions.
IMetricsHeader
Defines the contract for the metrics header of a font face.
IReadOnlyFontCollection
Represents a readonly collection of fonts.
IReadOnlySystemFontCollection
Represents a readonly collection of Operating System fonts.
Enums
ColorFontSupport
Options for enabling color font support during layout and rendering.
FontStyle
The font styles
GlyphLayoutMode
Provides enumeration for the various layout mode of an individual glyph within a body of text.
GlyphType
Represents the various versions of a glyph records.
HintingMode
Defines modes to determine how to apply hinting. The use of mathematical instructions to adjust the display of an outline font so that it lines up with a rasterized grid.
HorizontalAlignment
Horizontal alignment modes.
KerningMode
Kerning is the contextual adjustment of inter-glyph spacing. This property controls metric kerning, kerning that utilizes adjustment data contained in the font.
LayoutMode
Defines modes to determine the layout direction of text.
TextAlignment
Text alignment modes.
TextAttributes
Provides enumeration of various text attributes.
TextDecorations
Provides enumeration of various text decorations.
TextDirection
Specifies the writing direction for text.
TextJustification
Text justification modes.
VerticalAlignment
Vertical alignment modes.
WordBreaking
Defines modes to determine when line breaks should appear when words overflow their content box.