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 );

  return o == FT_ORIENTATION_TRUETYPE ? FT_STROKER_BORDER_RIGHT
                                        : 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, e.town, 364 Cong Hoa St., Tan Binh Dist, HCMC, Viet
Nam
Tel: 84-8-3812 1506     Fax: 84-8-3812 1512
Email: [email protected]

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

_______________________________________________
Freetype-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/freetype-devel

Reply via email to