Method TryGetGlyphId

Namespace
SoftZenPdf
Assembly
SoftZenPdf.dll

TryGetGlyphId(int, out ushort)

Looks up the glyph for a Unicode code point, to check whether the font can show a character.

public bool TryGetGlyphId(int codePoint, out ushort glyphId)

Parameters

codePoint int

A Unicode code point, such as 0x20AC for €.

glyphId ushort

The glyph index, if found.

Returns

bool

true if the font maps the code point to a glyph.