freetype
[Top][All Lists]
Advanced

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

Re: [Freetype] ft_outline_reverse_fill broken?


From: David Turner
Subject: Re: [Freetype] ft_outline_reverse_fill broken?
Date: Fri, 07 Dec 2001 02:28:38 +0100

Hello Henry,

address@hidden a écrit :
> 
> I've struck a problem with my openGL font rendering library. It has
> shown up when drawing extruded glyphs.
> See image of correct rendering...
> 
> http://homepages.paradise.net.nz/henryj/code/index.html#ftgl
> 
> According to the docs outline fonts are generally wound clockwise, if
> not then the 'flags' field of the 'FT_Outline' will be set to
> 'ft_outline_reverse_fill'. I've found some fonts that aren't rendering
> correctly because of the anti clockwise winding but the
> ft_outline_reverse_fill flag isn't set. In fact the flag field is set to
> 1 in almost all fonts I tested. Am I missing something or is it broken?
> If it is broken what else can I test because this is a show stopper!
>

Actually, the flag corresponds to the convention used by the font format
the glyph originates from, and note from the actual value.

That's because computing this for each glyph is slightly expensive,
and very few applications need this. Second, certain glyphs used
_both_ conventions in their respective contours, and it's hard to
return a meaningul 1-bit flag about them..

Yes, these are rare, but they generally come from really badly designed
font, or more commonly composite glyphs using affine symetries/reversals..

Cheers,

- David


 
> henry
> 
> "I can run faster scared than you can angry"
> 
> _______________________________________________
> Freetype mailing list
> address@hidden
> http://www.freetype.org/mailman/listinfo/freetype



reply via email to

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