freetype
[Top][All Lists]
Advanced

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

Re: [ft] FT_Open_Face with negative face_index


From: Werner LEMBERG
Subject: Re: [ft] FT_Open_Face with negative face_index
Date: Mon, 16 May 2005 09:40:44 +0200 (CEST)

> The FreeType2 docs mention that, if the face_index parameter of
> FT_Open_Face is negative, '* face', which I'm assuming refers to the
> function's 'aface' parameter,

Correct.  This is a typo which I've just fixed in the CVS.

> will not be filled in.  See:
> http://freetype.sourceforge.net/freetype2/docs/reference/ft2-base_interface.html#FT_Open_Face
> (look under the 'note' heading).  This suggests that I should be
> able to pass a null pointer as the aface parameter since its not
> going to be used anyway.  However, the function fails if I do that,
> so my assumption must be wrong.  If I pass it a real pointer to an
> FT_Face instance, it fills it in even though the face_index is
> negative (the docs say it 'will not return any face handle' in this
> case).  FT_Open_Face seems to operate as if the face_index were 0
> even if I pass -1.

Your analysis is correct, and I've just applied a fix to the CVS to
make FT_Face_Open behave as documented.  Please test.


    Werner




reply via email to

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