Re: [ft] FT_Load_Glyph and invalid argument (error 6)

2014-06-16 Thread suzuki toshiya
Please build FreeType2 in debugging mode (see docs/DEBUG) and check how the error occurs. Regards, mpsuzuki Yose Widjaja wrote: Hello All, I just recently ported my codebase to android (from linux) and when my code got to the point of: int glyph_index = FT_Get_Char_Index(face,

Re: [ft] FT_Load_Glyph and invalid argument (error 6)

2014-06-16 Thread Yose Widjaja
Hmm, I'll be compiling with FT_DEBUG_LEVEL_ERROR, but how do I use ftdebug? If you mean FT_DEBUG_LEVEL_TRACE, being on android, stdout isn't really routed anywhere easily visible. On Tue, Jun 17, 2014 at 1:21 AM, suzuki toshiya mpsuz...@hiroshima-u.ac.jp wrote: Please build FreeType2 in

Re: [ft] FT_Load_Glyph and invalid argument (error 6)

2014-06-16 Thread Yose Widjaja
Ahem, never mind, found my issue. I was loading the font from memory and didn't read that the memory should not be cleared while the font is to be used. My bad, truly On Tue, Jun 17, 2014 at 1:53 AM, Yose Widjaja y...@jormy.com wrote: Hmm, I'll be compiling with FT_DEBUG_LEVEL_ERROR, but how