<s> '''<STR_LIT>''' <EOL> from freetype import * <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> import numpy <EOL> import matplotlib . pyplot as plt <EOL> face = Face ( '<STR_LIT>' ) <EOL> face . set_char_size ( <NUM_LIT:4> * <NUM_LIT> * <NUM_LIT:64> ) <EOL> flags = FT_LOAD_DEFAULT | FT_LOAD_NO_BITMAP <EOL> face . load_char ( '<STR_LIT:S>' , flags ) <EOL> slot = face . glyph <EOL> glyph = slot . get_glyph ( ) <EOL> stroker = Stroker ( ) <EOL> stroker . set ( <NUM_LIT:64> , FT_STROKER_LINECAP_ROUND , FT_STROKER_LINEJOIN_ROUND , <NUM_LIT:0> ) <EOL> glyph . stroke ( stroker ) <EOL> blyph = glyph . to_bitmap ( FT_RENDER_MODE_NORMAL , Vector ( <NUM_LIT:0> , <NUM_LIT:0> ) ) <EOL> bitmap = blyph . bitmap <EOL> width , rows , pitch = bitmap . width , bitmap . rows , bitmap . pitch <EOL> top , left = blyph . top , blyph . left <EOL> data = [ ] <EOL> for i in range ( rows ) : <EOL> data . extend ( bitmap . buffer [ i * pitch : i * pitch + width ] ) <EOL> Z = numpy . array ( data , dtype = numpy . ubyte ) . reshape ( rows , width ) <EOL> plt . figure ( figsize = ( <NUM_LIT:6> , <NUM_LIT:8> ) ) <EOL> plt . imshow ( Z , interpolation = '<STR_LIT>' , cmap = plt . cm . gray_r , origin = '<STR_LIT>' ) <EOL> plt . show ( ) </s>
