Expand description
Embedded bitmap glyphs.
A font stores its bitmaps in strikes, one per size. BitmapStrikes
reads them from the first of sbix, CBDT and EBDT that a
GlyphSourceOrder prefers. It selects a Strike for a size, and a
strike returns a BitmapGlyph. The pixels of a
BitmapGlyph can be read without knowing how the table stores them.
Structsยง
- Bgra
- Uncompressed 32-bit color pixels.
- Bitmap
Glyph - An embedded bitmap glyph.
- Bitmap
Strikes - The bitmap strikes of a font, read from a single table.
- Mask
- A single channel coverage mask of 1, 2, 4 or 8 bits per pixel.
- MaskRow
- One row of a
Mask. - Strike
- A set of bitmaps at one size.
Enumsยง
- Bitmap
Source - A table that provides bitmaps.
- Kind ๐
- Origin
- The corner of a bitmap that the inner bearings position.
- Pixels
- Pixel data for a bitmap glyph.
- Strike
Kind ๐
Constantsยง
- MAX_
SBIX_ ๐DUPES - The maximum number of
dupeentries to follow. - PNG_
SIGNATURE ๐ - The eight-byte signature at the start of every PNG file.
Functionsยง
- closer_
to ๐ - Returns
trueif a strike ofcandidatepixels per em is a better match forppemthan a strike ofbest. - sbix_
bearings ๐ - Returns the bearings used to position an
sbixbitmap, in font units. - sbix_
glyph ๐ - Reads a PNG glyph from an
sbixstrike.