(self, height, fontdict, codepage)
Initialise the font.
Initialise the font.
Initialise the font .
def __init__(self, height, fontdict, codepage):
        """Initialise the font."""
        self._width = 8
        self._height = int(height)
        self._codepage = codepage
        if not fontdict:
            if height == 8:
                fontdict = {
                    self._byte_to_char(_i): binascii.unhexlify(_glyph)
                    for _i, _glyph in enumerate(_DEFAULT_FONT)
                }
            else:
                raise ValueError(
                    'No font dictionary specified and no %d-pixel default available.' % (height,)
                )
        self._fontdict = fontdict
        self._glyphs = {}
        self._carry_row_9_chars = [self._byte_to_char(_b) for _b in _CARRY_ROW_9_BYTES]
        self._carry_col_9_chars = [self._byte_to_char(_b) for _b in _CARRY_COL_9_BYTES]
def __init__ ( self , height , fontdict , codepage ) : self . _width = 8 self . _height = int ( height ) self . _codepage = codepage if not fontdict : if height == 8 : fontdict = { self . _byte_to_char ( _i ) : binascii . unhexlify ( _glyph ) for _i , _glyph in enumerate ( _DEFAULT_FONT ) } else : raise ValueError ( 'No font dictionary specified and no %d-pixel default available.' % ( height , ) ) self . _fontdict = fontdict self . _glyphs = { } self . _carry_row_9_chars = [ self . _byte_to_char ( _b ) for _b in _CARRY_ROW_9_BYTES ] self . _carry_col_9_chars = [ self . _byte_to_char ( _b ) for _b in _CARRY_COL_9_BYTES ]