Rendering a single character eat up all memories
Posted: 2014-08-25T21:36:00-07:00
While I am rendering text using:
convert -pointsize 100 -font ./kaiti_GB2312.ttf label:O O.png
convert eat up all my free memory (about 4G). However, if I use smaller font size:
convert -pointsize 50 -font ./kaiti_GB2312.ttf label:O O.png
it works nicely. And more interesting, if I render another character other than 'O', like 'P', using 100 point size,
it also works like a charm:
convert -pointsize 100 -font ./kaiti_GB2312.ttf label:P P.png
I've tried other various fonts (around 1000 kinds, rendering [a-zA-Z0-9]) using the same setting that would fail
on kaiti_GB2312, they all worked smoothly.
I tested this font in LibreOffice, it also worked.
I hypothesize that the problem lies in the incompatibility between imagemagick and this fonts.
The font is uploaded here:
http://www.speedyshare.com/YXRWj/kaiti-GB2312.ttf
Best.
convert -pointsize 100 -font ./kaiti_GB2312.ttf label:O O.png
convert eat up all my free memory (about 4G). However, if I use smaller font size:
convert -pointsize 50 -font ./kaiti_GB2312.ttf label:O O.png
it works nicely. And more interesting, if I render another character other than 'O', like 'P', using 100 point size,
it also works like a charm:
convert -pointsize 100 -font ./kaiti_GB2312.ttf label:P P.png
I've tried other various fonts (around 1000 kinds, rendering [a-zA-Z0-9]) using the same setting that would fail
on kaiti_GB2312, they all worked smoothly.
I tested this font in LibreOffice, it also worked.
I hypothesize that the problem lies in the incompatibility between imagemagick and this fonts.
The font is uploaded here:
http://www.speedyshare.com/YXRWj/kaiti-GB2312.ttf
Best.