[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: problems with code/error message
From: |
Allen Lin |
Subject: |
Re: problems with code/error message |
Date: |
Fri, 7 Jul 2000 14:44:39 -0700 |
I'm testing with several TrueType fonts, including Arial and Times New
Roman, as well as the Sans Serif raster font. DEFAULT_FONT is the
following:
char * DEFAULT_FONT = "arial.ttf";
I have yet to compile the sample programs, but I've tested the code with
over 11 other TrueType and raster fonts.
- 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.
----- Original Message -----
From: David Turner <address@hidden>
To: Allen Lin <address@hidden>
Cc: <address@hidden>; <address@hidden>
Sent: Friday, July 07, 2000 2:45 PM
Subject: Re: problems with code/error message
> 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.