freetype-devel
[Top][All Lists]
Advanced

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

Re: problems with code/error message


From: David Turner
Subject: Re: problems with code/error message
Date: Fri, 07 Jul 2000 23:46:23 +0200

And also, what is the content of the <freetype/config/ftmodule.h>
file you're using.. ?

- David

Allen Lin a écrit :
> 
> I keep getting the "unknown file format" error message (error code 2) when I
> compile my code.  Am I not defining something which should be defined.  I'm
> currently just trying to work my way through the tutorial.
> 
> static iTruth Inited = kFalse;
> 
> FT_Error error;
> 
> static FT_Library library;
> static FT_Face  face;
> 
> if(!Inited)
>     {
>           Inited = kTrue;
>           error = FT_Init_FreeType( &library );
> 
>         if(!error)
>       {
>            error = FT_New_Face( library, DEFAULT_FONT, 0, &face );
>            if(error!=0)
>            {
>                 GregSez(("FT_New_Face() returned error code %d\n",error));
>            }
>       }
>       else
>       {
>        GregSez(("FT_Init_FreeType() returned error code %d\n",error));
>       }
>  }
> 
> - Allen H. Lin  (not quite Asok)
>   Programming Intern
>   Quicksilver Software Inc.
>   (949)474-2150 x56
> 
> The views addressed in this e-mail are not representative of Quicksilver
> Software in any way, shape, or form.



reply via email to

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