def _get_font_ttf(self, prop):
key = hash(prop)<EOL>font = _fontd.get(key)<EOL>if font is None:<EOL><INDENT>fname = findfont(prop)<EOL>if debugText: print("<STR_LIT>" % fname)<EOL>font = FT2Font(str(fname))<EOL>_fontd[key] = font<EOL><DEDENT>font.clear()<EOL>size = prop.get_size_in_points()<EOL>font.set_size(size, self.dpi)<EOL>return font<EOL>
get the true type font properties, used because EMFs on
windows will use true type fonts.