[Top][All Lists]
[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:45:38 +0200 |
Hi Allen,
It'd be interesting to know what the DEFAULT_FONT is.
Does it work with "ftview" ? More generally, do the example
programs work with well ?
Best,
- David
>
> 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.