• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

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.

Inheritance
object
TtfCMapFormatBaseTable
TtfCMapFormat4Table
Inherited Members
TtfCMapFormatBaseTable.PlatformId
TtfCMapFormatBaseTable.PlatformSpecificId
TtfCMapFormatBaseTable.Format
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.ReferenceEquals(object, object)
object.ToString()
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
TtfCMapFormatBaseTable.GetGlyphIndex(uint)
Remarks

Standard OpenType format 4 lookup: binary-searches segments by endCount, then applies idDelta or the glyphIdArray indirection.

Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX