[Top][All Lists]

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

[ft-devel] [NECSV - LSB PJ] Misprint in the spec of FT_Outline_GetInside

From: Truc Truong
Subject: [ft-devel] [NECSV - LSB PJ] Misprint in the spec of FT_Outline_GetInsideBorder function
Date: Fri, 16 Jan 2009 16:11:49 +0700

To freetype maintainers,

The FreeType2 API reference states that FT_Outline_GetInsideBorder function
returns FT_STROKER_BORDER_LEFT for empty or invalid outlines. But in our
program, in these cases, it always returns FT_STROKER_BORDER_RIGHT.

But the source looks like this: (v.2.3.8)
/* documentation is in ftstroke.h */

FT_EXPORT_DEF( FT_StrokerBorder )
FT_Outline_GetInsideBorder( FT_Outline*  outline )
  FT_Orientation  o = FT_Outline_Get_Orientation( outline );

                                        : FT_STROKER_BORDER_LEFT;

According to the spec, FT_Outline_Get_Orientation should return
FT_ORIENTATION_TRUETYPE for empty or invalid outlines.

That means that FT_Outline_GetInsideBorder does not comply with the spec in
case of empty and invalid outlines.

I suppose, there is a misprint in the spec. Please double check and let us
know your ruling/finding that you may have.

Best regards,
Truc Truong
NEC Solutions Vietnam
Add: Suite 3.3 - 3.4,, 364 Cong Hoa St., Tan Binh Dist, HCMC, Viet
Tel: 84-8-3812 1506     Fax: 84-8-3812 1512
Email: address@hidden

Attachment: V0025-Problem_Standard-freetype-2.1.10-Glyph_Stroker.odt
Description: application/vnd.oasis.opendocument.text

reply via email to

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