Table of Contents

Class FontUsage

Namespace
Xui.Runtime.Software.Font
Assembly
Xui.Runtime.Software.dll

The characters and adjacent character pairs rendered with one font face.

public sealed class FontUsage
Inheritance
FontUsage
Inherited Members

Remarks

This deliberately records source characters rather than only glyph IDs. A compact font needs a cmap for the SVG text, while pairs allow the subsetter to retain the kerning actually used. Complex OpenType shaping is outside the first subset format and will add richer usage records.

Properties

Characters

public IReadOnlySet<Rune> Characters { get; }

Property Value

IReadOnlySet<Rune>

Pairs

public IReadOnlySet<FontUsage.RunePair> Pairs { get; }

Property Value

IReadOnlySet<FontUsage.RunePair>

Methods

Add(string)

public void Add(string text)

Parameters

text string