Class TtfCMapFormat4Table
CMap format 4: segmented BMP character-to-glyph-index mapping. Covers Unicode code points in the range U+0000–U+FFFF using a series of contiguous segments defined by start/end code arrays. Ref: OpenType spec §5.6.1.1.4.
Inherited Members
Namespace: DRIT.Drawing.Font.Ttf.Tables
Assembly: DRIT.Drawing.dll
Syntax
public sealed class TtfCMapFormat4Table : TtfCMapFormatBaseTable
Methods
GetGlyphIndex(uint)
Maps a Unicode code point to a glyph index. Returns 0 (.notdef) when no glyph is mapped for the code point.
Declaration
public override uint GetGlyphIndex(uint codePoint)
Parameters
| Type | Name | Description |
|---|---|---|
| uint | codePoint |
Returns
| Type | Description |
|---|---|
| uint |
Overrides
Remarks
Standard OpenType format 4 lookup:
binary-searches segments by endCount, then applies
idDelta or the glyphIdArray indirection.