Fix segfault when using flat fonts.
Merge pull request #47 from keigen-shu/master

Fix segfault when using flat fonts.