Lines Matching refs:font
19 # This program takes a TTF font and set isFixedPitch bit used to detect font as a Monospace.
27 # input font will be overwriten and backup will be created for input font
34 # Open the font file supplied as the first argument on the command line
37 font = ttLib.TTFont(fontfile)
40 if 'post' in font:
41 if font["post"].isFixedPitch == 0:
42 font["post"].isFixedPitch = 1
43 print("isFixedPitch is now: ", font["post"].isFixedPitch)
49 font.save(newfont)