[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ft] Tesselationg Fonts with gluTesselator
From: |
LonelyStar |
Subject: |
Re: [ft] Tesselationg Fonts with gluTesselator |
Date: |
Sun, 3 Sep 2006 12:54:26 -0700 (PDT) |
Hello,
Thanks for your reply. I tried around and it works with other fonts.
Nathan
Bertrand Coconnier wrote:
>
> Hello Nathan,
>
> Both winding rules (GLU_TESS_WINDING_ODD and GLU_TESS_WINDING_NONZERO)
> work ok for me : they give the same result.
>
> What I understand from the docs is that if you use
> FT_Outline_Decompose() the scan-converter will always parse the outline
> using the non-zero winding rule, whatever is the actual winding rule of
> your font.
>
> But may be I am wrong ?
>
> Bertrand.
>
> LonelyStar wrote :
>> Hello together,
>>
>> I am trying to make Polygons for Fonts using gluTesselator.
>> It works on many characters, but fails on characters with wholes.
>> So my guess is, that I use the wrong Winding rules. I set the winding
>> this
>> way:
>>
>> if(face->glyph->outline.flags | FT_OUTLINE_EVEN_ODD_FILL)
>> gluTessProperty(t, GLU_TESS_WINDING_RULE, GLU_TESS_WINDING_ODD);
>> else
>> gluTessProperty(t,GLU_TESS_WINDING_RULE,
>> GLU_TESS_WINDING_NONZERO);
>>
>> How should I set the winding rules?
>> Thanks!
>> Nathan
>
>
>
> _______________________________________________
> Freetype mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/freetype
>
>
--
View this message in context:
http://www.nabble.com/Tesselationg-Fonts-with-gluTesselator-tf2199607.html#a6126087
Sent from the Freetype - User forum at Nabble.com.