[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ft] Outline tags
From: |
Michele Petrazzo |
Subject: |
[ft] Outline tags |
Date: |
Fri, 09 Sep 2005 17:52:22 +0200 |
User-agent: |
Mozilla Thunderbird 1.0.6 (X11/20050716) |
Hi list,
Into the documentation (glyphs/index2.html), on the "Outlines curves
decomposition", I read on "FT_Curve_Tag_On": Used when the point is "on"
the curve,
but if I load a char, for example an "I" with an Arial font (I'm sure
that there is 4 segments and 8 points on the segments), I see that there
is no FT_Curve_Tag_On flags set...
Sometime, but I don't understand when, I see that that bit are set!?
FT_Set_Char_Size( faceS, char_sizeX * 64, char_sizeY * 64, resX, resY );
slot = faceS->glyph;
for ( n = 0; n < num_chars; n++ ) {
FT_Load_Char( faceS, text[n], FT_LOAD_DEFAULT);
outline = slot->outline;
outlineStartIndex = 0;
outlineEndIndex = 0;
for ( int p = 0; p <= outline.n_points; p++ ) {
outlineEndIndex = outline.contours[p];
for ( int j=outlineStartIndex; j < outlineEndIndex; j++) {
point_tag = &outline.tags[j];
printf("%s", *point_tag == FT_Curve_Tag_On ? "0 " : "1 " );
printf("%s", *point_tag == FT_Curve_Tag_Conic ? "1 " : "0 " );
printf("%s", *point_tag == FT_Curve_Tag_Cubic ? "1 " : "0 " );
this always print 0 (I don't wrote all the 24 zeros)
I misunderstood something?
Thanks,
Michele
- [ft] Outline tags,
Michele Petrazzo <=