Lines Matching full:width
22 width, height = image.size
37 for octet in range(0, int(width / 8)):
48 for col in range(0, width):
82 # calculate width + height
93 width = 8 * int((fw_max + 7) / 8)
96 width = fw_max
100 if width != args.width:
101 raise Exception('text width {} mismatch with -x {}'.format(width, args.width))
106 image = Image.new('1', (width, height), 'white')
112 # calculate width + height
118 xpos = (width - fw) / 2 + 1
130 glyph = image.crop((x_offset, 0, x_offset + args.width, args.height))
132 x_offset += args.width
172 static const uint8_t cfb_font_{name:s}_{width:d}{height:d}[{elem:d}][{b:.0f}] = {{\n"""
175 width=args.width,
178 b=args.width / 8 * args.height))
192 FONT_ENTRY_DEFINE({name}_{width}{height},
193 {width},
196 cfb_font_{name}_{width}{height},
200 """ .format(name=args.name, width=args.width, height=args.height,
239 "-x", "--width", required=True, type=int,
240 help="width of the CFB font elements in pixels")