PeachDrawing.Text

PeachDrawing.Text.Typeface

Typeface.TryMapRune(Rune, ushort) Method

Finds the glyph a character is drawn with, through the font’s cmap. Characters of the Basic Multilingual Plane are found in the format 4 subtable; the others need a format 12 subtable.

public bool TryMapRune(System.Text.Rune rune, out ushort glyph);

Parameters

rune System.Text.Rune

The character.

glyph System.UInt16

The glyph, when the font has one for the character.

Returns

System.Boolean
false when the font maps the character to no glyph but the missing-glyph one.