freetype
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Yose Widjaja
Subject: Re: [ft] FT_Load_Glyph and invalid argument (error 6)
Date: Tue, 17 Jun 2014 01:53:23 +1000

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 <address@hidden> wrote:
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, moo);
>          if(glyph_index != 0){
>               FT_Load_Glyph(face, glyph_index, 0); // returns 6
>
> it returns error 6, which seems to mean "Invalid Argument".
>
> I've checked the "face" argument, and it has been initialized with
> FT_New_Memory_Face properly (the file size input was non zero, it
> returned zero etc).
>
> The fonts used were identical with the one in linux. What other
> potential errors could I have been missing?
>
> I've checked both the library and header versions of freetype, and both
> are 2.5.3.
>
> Can anyone point me to the right direction?
>
> Cheers
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Freetype mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/freetype




--

Yose Widjaja
twitter: @jormy
address@hidden
+61 413 916 553



reply via email to

[Prev in Thread] Current Thread [Next in Thread]