how to use freetype-go to draw Chinese characters

245 views
Skip to first unread message

平民四月份

unread,
May 3, 2012, 3:33:34 AM5/3/12
to golan...@googlegroups.com
Hi guys:
         I want to draw  Chinese characters on image with freetype-go ( http://code.google.com/p/freetype-go/ ), i follow the example: freetype(..../example/freetype) to do that, but the characters on the "out.png" is messy code like this : 
[][][][]..., i had changed the default font: luxisr.ttf to others, but it is not work, what can i do to solve it ? 
--
 Face the sea, for the spring flowers blossoming




Nigel Tao

unread,
May 3, 2012, 4:22:15 AM5/3/12
to 平民四月份, golan...@googlegroups.com
On 3 May 2012 17:33, 平民四月份 <lew...@gmail.com> wrote:
> I want to draw Chinese characters on image with freetype-go (
> http://code.google.com/p/freetype-go/ ), i follow the example:
> freetype(..../example/freetype) to do that, but the characters on the
> "out.png" is messy code like this :
> [][][][]..., i had changed the default font: luxisr.ttf to others, but it is
> not work, what can i do to solve it ?

I am the freetype-go author. Can you e-mail me the font (off-list)?

Nigel Tao

unread,
May 4, 2012, 1:46:24 AM5/4/12
to 平民四月份, golan...@googlegroups.com
On 3 May 2012 17:33, 平民四月份 <lew...@gmail.com> wrote:
> Hi guys:
> I want to draw Chinese characters on image with freetype-go (
> http://code.google.com/p/freetype-go/ ), i follow the example:
> freetype(..../example/freetype) to do that, but the characters on the
> "out.png" is messy code like this :
> [][][][]..., i had changed the default font: luxisr.ttf to others, but it is
> not work, what can i do to solve it ?

For the record, this should be fixed (by
http://codereview.appspot.com/6198043). Thanks for the bug report.
Reply all
Reply to author
Forward
0 new messages