for y in range(bmp_size[1]):
self._bitmap[x, y] = 1 if ascii_mask.getpixel((x, y)) else 0
for y in range(bmp_size[1]):
self._bitmap[x, y] = 1 if ascii_mask.getpixel((x, y)) else 0
def get_bounding_box(self):
"""Returns the maximum bounds of all glyphs in the font in
a tuple of two values: width, height.
def get_bounding_box(self):
"""Returns the maximum bounds of all glyphs in the font in
a tuple of two values: width, height.
def get_glyph(self, codepoint):
"""Returns a `fontio.Glyph` for the given codepoint or None if no glyph is available."""
def get_glyph(self, codepoint):
"""Returns a `fontio.Glyph` for the given codepoint or None if no glyph is available."""