Class TtfCMapFormatBaseTable
Abstract base for a parsed OpenType CMap format subtable. Concrete implementations: TtfCMapFormat0Table (format 0), TtfCMapFormat4Table (format 4, BMP), TtfCMapFormat12Table (format 12, full Unicode).
Inheritance
TtfCMapFormatBaseTable
Inherited Members
Namespace: DRIT.Drawing.Font.Ttf.Tables
Assembly: DRIT.Drawing.dll
Syntax
public abstract class TtfCMapFormatBaseTable
Constructors
TtfCMapFormatBaseTable(ushort, ushort, ushort)
Initializes a new TtfCMapFormatBaseTable with the specified parameters.
Declaration
protected TtfCMapFormatBaseTable(ushort platformId, ushort platformSpecificId, ushort format)
Parameters
| Type | Name | Description |
|---|---|---|
| ushort | platformId | Platform identifier (0=Unicode, 1=Macintosh, 3=Windows). |
| ushort | platformSpecificId | Platform-specific encoding identifier. |
| ushort | format | CMap subtable format number. |
Properties
Format
CMap subtable format number (0, 4, 12, etc.).
Declaration
public ushort Format { get; }
Property Value
| Type | Description |
|---|---|
| ushort |
PlatformId
Platform identifier (0=Unicode, 1=Macintosh, 3=Windows).
Declaration
public ushort PlatformId { get; }
Property Value
| Type | Description |
|---|---|
| ushort |
PlatformSpecificId
Platform-specific encoding identifier.
Declaration
public ushort PlatformSpecificId { get; }
Property Value
| Type | Description |
|---|---|
| ushort |
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 abstract uint GetGlyphIndex(uint codePoint)
Parameters
| Type | Name | Description |
|---|---|---|
| uint | codePoint |
Returns
| Type | Description |
|---|---|
| uint |