def show_font_details(font):
print('{0:-^80}:'.format(' Font Details: '))
for name in dir(font):
if name.startswith('_'):
continue
value = getattr(font, name)
if name == 'sfnt_names':
for locale, _name, _value in value:
print('{0:>32}: {1} = {2}'.format(locale, _name, _value))
if type(value) in (types.IntType, types.FloatType,) + types.StringTypes:
print('{0:>32}: {1}'.format(name, value))
评论列表
文章目录