EBSC: Embedded Bitmap Scaling table
The EBSC table is an OpenType table.
This EBSC table converter module describes bitmap strikes that are
scaled from other embedded bitmap strikes, and works together with the
EBDT and EBLC tables.
- class fontTools.ttLib.tables.E_B_S_C_.table_E_B_S_C_(tag: str | bytes | None = None)[source]
Bases:
DefaultTableEmbedded Bitmap Scaling Table
The
EBSCtable provides a mechanism for describing embedded bitmaps which are created by scaling other embedded bitmaps. While this is the sort of thing that outline font technologies were invented to avoid, there are cases (small sizes of Kanji, for example) where scaling a bitmap produces more legible glyphs than scan-converting an outline. For this reason, the EBSC table allows a font to define a bitmap strike as a scaled version of another strike.The
EBSCtable is used together with theEBDTtable, which provides embedded monochrome or grayscale bitmap data, and theEBLCtable, which provides embedded bitmap locators.See also https://learn.microsoft.com/en-us/typography/opentype/spec/ebsc
- dependencies: list[str] = ['EBDT', 'EBLC']
- version: float
- numSizes: int
- bitmapScaleTables: list[BitmapScaleTable]
- class fontTools.ttLib.tables.E_B_S_C_.BitmapScaleTable(hori: SbitLineMetrics | None = None, vert: SbitLineMetrics | None = None, ppemX: int = 0, ppemY: int = 0, substitutePpemX: int = 0, substitutePpemY: int = 0)[source]
Bases:
object- hori: SbitLineMetrics
- vert: SbitLineMetrics
- ppemX: int
- ppemY: int
- substitutePpemX: int
- substitutePpemY: int