freetype
[Top][All Lists]
Advanced

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

[ft] FT_Load_Glyph and invalid argument (error 6)


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

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

reply via email to

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