文字の大きさを取得

2015/8/20

Python2.7.6,

import ImageFont
font = ImageFont.truetype('c:\\WINDOWS\\Fonts\\msgothic.ttc', 24)
width, height = font.getsize(u'あいうえお')