freetype
[Top][All Lists]
Advanced

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

Re: Uninitalized Face data


From: David Turner
Subject: Re: Uninitalized Face data
Date: Fri, 25 Feb 2000 13:14:01 +0100

Hello,

A few notes related to the "uninitialized face data" problem.
In my opinion,

Arnar Mar Hrafnkelsson a écrit :
> 
> Hi, I'm pretty new to Freetype so I hope this isn't a faq question
> ( I did check the faq and most of the text files in the doc directory ).
> 
> If I have an array of instance handles say:
> 
> int i;
> TT_instance instance[10];
> 
> for(i=0;i<10;i++) {
>   instance[i]=NULL;  /* this is the part that
>                         it doesn't like */
> }
> 
> The reason is that freetype arranges TT_instance like:
> 
> struct TT_Instance_ { void*  z; };
> typedef struct TT_Instance_  TT_Instance;
> 
> It seems that I have two choices -
> 
> 1) Check the internal z pointer
>   - which would seem like doing something I shouldn't be doing.
> 
> 2) Create an array of pointers to TT_instance and dereference all the
> time.
>   - This is a tad annoying since this seems to be a pointer anyway.
> 
> It would be nice to have some macros like: Not_Null( instance );
> but from what I gathered in the documentation they were mostly for
> internals programming.
> 
> Thanks for your time.
> 
>         Arnar M. Hrafnkelsson
>         (address@hidden)



reply via email to

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