• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Class FontFallbackChain

An ordered list of font families queried to find a glyph for a code point that the primary font lacks. Used for automatic font fallback during text layout.

Inheritance
object
FontFallbackChain
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: DRIT.Drawing.Text
Assembly: DRIT.Drawing.dll
Syntax
public sealed class FontFallbackChain

Constructors

FontFallbackChain()

Initializes an empty fallback chain.

Declaration
public FontFallbackChain()

FontFallbackChain(params FontFamily[])

Initializes a chain containing the specified families.

Declaration
public FontFallbackChain(params FontFamily[] families)
Parameters
Type Name Description
FontFamily[] families

Properties

Families

The ordered list of fallback font families.

Declaration
public IReadOnlyList<FontFamily> Families { get; }
Property Value
Type Description
IReadOnlyList<FontFamily>

Methods

Add(FontFamily)

Adds a fallback family to the end of the chain.

Declaration
public FontFallbackChain Add(FontFamily family)
Parameters
Type Name Description
FontFamily family
Returns
Type Description
FontFallbackChain

CreateDefault()

Creates the default fallback chain for the current operating system, using installed fonts. Returns an empty chain when no fallback families are installed.

Declaration
public static FontFallbackChain CreateDefault()
Returns
Type Description
FontFallbackChain

Resolve(uint, FontStyle)

Returns the family from the chain that provides a glyph for codePoint, or null if none do.

Declaration
public FontFamily? Resolve(uint codePoint, FontStyle style)
Parameters
Type Name Description
uint codePoint
FontStyle style
Returns
Type Description
FontFamily
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX