Class TtfCbdtTable
Parsed OpenType "CBDT" (Color Bitmap Data) table.
Exposes colour bitmap images (typically PNG) for individual glyphs.
Requires the companion "CBLC" table to be parsed first; pass a
DRIT.Drawing.Font.Ttf.Tables.TtfCblcTable to Parse(byte[], byte[], TtfCblcTable).
Ref: OpenType spec §table-CBDT.
Assembly: DRIT.Drawing.dll
Syntax
public sealed class TtfCbdtTable : TtfTableBase
Fields
TableTag
The table tag for the CBDT table.
Declaration
public const string TableTag = "CBDT"
Field Value
Properties
StrikeCount
Number of bitmap strikes exposed by the CBLC companion table.
Declaration
public int StrikeCount { get; }
Property Value
Methods
GetGlyphBitmap(int, int)
Returns the raw image bytes (PNG) for glyphIndex in
strikeIndex, or null when the glyph
is absent from that strike.
Declaration
public byte[]? GetGlyphBitmap(int glyphIndex, int strikeIndex = 0)
Parameters
| Type |
Name |
Description |
| int |
glyphIndex |
|
| int |
strikeIndex |
|
Returns
GetStrikePpemX(int)
Pixels-per-em (X axis) for the given strike, or 0 when out of range.
Declaration
public int GetStrikePpemX(int strikeIndex)
Parameters
| Type |
Name |
Description |
| int |
strikeIndex |
|
Returns
GetStrikePpemY(int)
Pixels-per-em (Y axis) for the given strike, or 0 when out of range.
Declaration
public int GetStrikePpemY(int strikeIndex)
Parameters
| Type |
Name |
Description |
| int |
strikeIndex |
|
Returns