(self, width, height)
return self
Preload SBCS glyphs at mode switch.
Preload SBCS glyphs at mode switch.
Preload SBCS glyphs at mode switch .
def init_mode(self, width, height):
        """Preload SBCS glyphs at mode switch."""
        if self._width != width or self._height != height:
            self._width = width
            self._height = height
            # build the basic 256 codepage characters
            for _c in range(256):
                self._build_glyph(self._byte_to_char(_c), fullwidth=False)
        return self
def init_mode ( self , width , height ) : if self . _width != width or self . _height != height : self . _width = width self . _height = height # build the basic 256 codepage characters for _c in range ( 256 ) : self . _build_glyph ( self . _byte_to_char ( _c ) , fullwidth = False ) return self