EBDT: Embedded Bitmap Data table

The EBDT table is an OpenType table.

This EBDT table converter module depends on the BitmapGlyphMetrics module, which it shares with the EBLC, CBDT, and CBLC converters.

class fontTools.ttLib.tables.E_B_D_T_.table_E_B_D_T_(tag=None)[source]

Bases: DefaultTable

Embedded Bitmap Data table

The EBDT table contains monochrome or grayscale bitmap data for glyphs. It must be used in concert with the EBLC table.

See also https://learn.microsoft.com/en-us/typography/opentype/spec/ebdt

locatorName = 'EBLC'
getImageFormatClass(imageFormat)[source]
decompile(data, ttFont)[source]
compile(ttFont)[source]
toXML(writer, ttFont)[source]
fromXML(name, attrs, content, ttFont)[source]
subset_glyphs(s)
class fontTools.ttLib.tables.E_B_D_T_.EbdtComponent[source]

Bases: object

toXML(writer, ttFont)[source]
fromXML(name, attrs, content, ttFont)[source]
class fontTools.ttLib.tables.E_B_D_T_.BitmapGlyph(data, ttFont)[source]

Bases: object

fileExtension = '.bin'
xmlDataFunctions = {'bitwise': (<function _writeBitwiseImageData>, <function _readBitwiseImageData>), 'extfile': (<function _writeExtFileImageData>, <function _readExtFileImageData>), 'raw': (<function _writeRawImageData>, <function _readRawImageData>), 'row': (<function _writeRowImageData>, <function _readRowImageData>)}
ensureDecompiled(recurse=False)[source]
getFormat()[source]
toXML(strikeIndex, glyphName, writer, ttFont)[source]
fromXML(name, attrs, content, ttFont)[source]
writeMetrics(writer, ttFont)[source]
readMetrics(name, attrs, content, ttFont)[source]
writeData(strikeIndex, glyphName, writer, ttFont)[source]
readData(name, attrs, content, ttFont)[source]
fontTools.ttLib.tables.E_B_D_T_.BitmapPlusBigMetricsMixin

alias of BitmapPlusMetricsMixin

fontTools.ttLib.tables.E_B_D_T_.BitmapPlusSmallMetricsMixin

alias of BitmapPlusMetricsMixin

class fontTools.ttLib.tables.E_B_D_T_.BitAlignedBitmapMixin[source]

Bases: object

getRow(row, bitDepth=1, metrics=None, reverseBytes=False)[source]
setRows(dataRows, bitDepth=1, metrics=None, reverseBytes=False)[source]
class fontTools.ttLib.tables.E_B_D_T_.ByteAlignedBitmapMixin[source]

Bases: object

getRow(row, bitDepth=1, metrics=None, reverseBytes=False)[source]
setRows(dataRows, bitDepth=1, metrics=None, reverseBytes=False)[source]
class fontTools.ttLib.tables.E_B_D_T_.ebdt_bitmap_format_1(data, ttFont)[source]

Bases: ByteAlignedBitmapMixin, BitmapPlusMetricsMixin, BitmapGlyph

decompile()[source]
compile(ttFont)[source]
class fontTools.ttLib.tables.E_B_D_T_.ebdt_bitmap_format_2(data, ttFont)[source]

Bases: BitAlignedBitmapMixin, BitmapPlusMetricsMixin, BitmapGlyph

decompile()[source]
compile(ttFont)[source]
class fontTools.ttLib.tables.E_B_D_T_.ebdt_bitmap_format_5(data, ttFont)[source]

Bases: BitAlignedBitmapMixin, BitmapGlyph

decompile()[source]
compile(ttFont)[source]
class fontTools.ttLib.tables.E_B_D_T_.ebdt_bitmap_format_6(data, ttFont)[source]

Bases: ByteAlignedBitmapMixin, BitmapPlusMetricsMixin, BitmapGlyph

decompile()[source]
compile(ttFont)[source]
class fontTools.ttLib.tables.E_B_D_T_.ebdt_bitmap_format_7(data, ttFont)[source]

Bases: BitAlignedBitmapMixin, BitmapPlusMetricsMixin, BitmapGlyph

decompile()[source]
compile(ttFont)[source]
class fontTools.ttLib.tables.E_B_D_T_.ComponentBitmapGlyph(data, ttFont)[source]

Bases: BitmapGlyph

toXML(strikeIndex, glyphName, writer, ttFont)[source]
fromXML(name, attrs, content, ttFont)[source]
class fontTools.ttLib.tables.E_B_D_T_.ebdt_bitmap_format_8(data, ttFont)[source]

Bases: BitmapPlusMetricsMixin, ComponentBitmapGlyph

decompile()[source]
compile(ttFont)[source]
class fontTools.ttLib.tables.E_B_D_T_.ebdt_bitmap_format_9(data, ttFont)[source]

Bases: BitmapPlusMetricsMixin, ComponentBitmapGlyph

decompile()[source]
compile(ttFont)[source]