CBDT: Color Bitmap Data table
The CBDT table is an OpenType table.
This CBDT table converter module depends on the
BitmapGlyphMetrics module, which it shares with the EBDT,
EBLC, and CBLC converters.
- class fontTools.ttLib.tables.C_B_D_T_.table_C_B_D_T_(tag=None)[source]
Bases:
table_E_B_D_T_Color Bitmap Data table
The
CBDTtable contains color bitmap data for glyphs. It must be used in concert with theCBLCtable.It is backwards-compatible with the monochrome/grayscale
EBDTtable.See also https://learn.microsoft.com/en-us/typography/opentype/spec/cbdt
- locatorName = 'CBLC'
- class fontTools.ttLib.tables.C_B_D_T_.ColorBitmapGlyph(data, ttFont)[source]
Bases:
BitmapGlyph- fileExtension = '.png'
- xmlDataFunctions = {'bitwise': (<function _writeBitwiseImageData>, <function _readBitwiseImageData>), 'extfile': (<function _writeExtFileImageData>, <function _readExtFileImageData>), 'raw': (<function _writeRawImageData>, <function _readRawImageData>)}
- class fontTools.ttLib.tables.C_B_D_T_.cbdt_bitmap_format_17(data, ttFont)[source]
Bases:
BitmapPlusMetricsMixin,ColorBitmapGlyph
- class fontTools.ttLib.tables.C_B_D_T_.cbdt_bitmap_format_18(data, ttFont)[source]
Bases:
BitmapPlusMetricsMixin,ColorBitmapGlyph