TryGetGlyphId(String, out Int32) Method

Definition

Namespace Broadside.Fonts
Assembly Broadside.dll

Looks up a glyph by name: the "post" table for TrueType, the charset for CFF, the CharStrings for Type 1.

public virtual bool TryGetGlyphId(string glyphName, scoped out int glyphId)

Parameters

glyphName
String

The glyph name.

glyphId
Int32

The glyph id; 0 when not found.

Returns

Boolean
true when the program has a glyph of that name.

Remarks

ISO 32000-2 §9.6.5.4: the "post" fallback for TrueType fonts.