|
|
|
@ -154,7 +154,7 @@ |
|
|
|
|
goto Exit; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
FT_TRACE5(( "standard character: U+%04lX (glyph index %d)\n", |
|
|
|
|
FT_TRACE5(( "standard character: U+%04lX (glyph index %ld)\n", |
|
|
|
|
ch, glyph_index )); |
|
|
|
|
|
|
|
|
|
error = FT_Load_Glyph( face, glyph_index, FT_LOAD_NO_SCALE ); |
|
|
|
@ -257,9 +257,9 @@ |
|
|
|
|
dim == AF_DIMENSION_VERT ? "horizontal" |
|
|
|
|
: "vertical" )); |
|
|
|
|
|
|
|
|
|
FT_TRACE5(( " %d (standard)", axis->standard_width )); |
|
|
|
|
FT_TRACE5(( " %ld (standard)", axis->standard_width )); |
|
|
|
|
for ( i = 1; i < axis->width_count; i++ ) |
|
|
|
|
FT_TRACE5(( " %d", axis->widths[i].org )); |
|
|
|
|
FT_TRACE5(( " %ld", axis->widths[i].org )); |
|
|
|
|
|
|
|
|
|
FT_TRACE5(( "\n" )); |
|
|
|
|
} |
|
|
|
@ -1031,7 +1031,7 @@ |
|
|
|
|
{ |
|
|
|
|
*a = *b; |
|
|
|
|
FT_TRACE5(( "blue zone overlap:" |
|
|
|
|
" adjusting %s %d to %ld\n", |
|
|
|
|
" adjusting %s %ld to %ld\n", |
|
|
|
|
a_is_top ? "overshoot" : "reference", |
|
|
|
|
blue_sorted[i] - axis->blues, |
|
|
|
|
*a )); |
|
|
|
@ -1279,7 +1279,7 @@ |
|
|
|
|
"af_latin_metrics_scale_dim:" |
|
|
|
|
" x height alignment (style `%s'):\n" |
|
|
|
|
" " |
|
|
|
|
" vertical scaling changed from %.5f to %.5f (by %d%%)\n" |
|
|
|
|
" vertical scaling changed from %.5f to %.5f (by %ld%%)\n" |
|
|
|
|
"\n", |
|
|
|
|
af_style_names[metrics->root.style_class->style], |
|
|
|
|
scale / 65536.0, |
|
|
|
@ -1332,7 +1332,7 @@ |
|
|
|
|
width->cur = FT_MulFix( width->org, scale ); |
|
|
|
|
width->fit = width->cur; |
|
|
|
|
|
|
|
|
|
FT_TRACE5(( " %d scaled to %.2f\n", |
|
|
|
|
FT_TRACE5(( " %ld scaled to %.2f\n", |
|
|
|
|
width->org, |
|
|
|
|
width->cur / 64.0 )); |
|
|
|
|
} |
|
|
|
@ -1473,8 +1473,8 @@ |
|
|
|
|
AF_LatinBlue blue = &axis->blues[nn]; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
FT_TRACE5(( " reference %d: %d scaled to %.2f%s\n" |
|
|
|
|
" overshoot %d: %d scaled to %.2f%s\n", |
|
|
|
|
FT_TRACE5(( " reference %d: %ld scaled to %.2f%s\n" |
|
|
|
|
" overshoot %d: %ld scaled to %.2f%s\n", |
|
|
|
|
nn, |
|
|
|
|
blue->ref.org, |
|
|
|
|
blue->ref.fit / 64.0, |
|
|
|
@ -2944,7 +2944,7 @@ |
|
|
|
|
|
|
|
|
|
stem_edge->pos = base_edge->pos + fitted_width; |
|
|
|
|
|
|
|
|
|
FT_TRACE5(( " LINK: edge %d (opos=%.2f) linked to %.2f," |
|
|
|
|
FT_TRACE5(( " LINK: edge %ld (opos=%.2f) linked to %.2f," |
|
|
|
|
" dist was %.2f, now %.2f\n", |
|
|
|
|
stem_edge - hints->axis[dim].edges, stem_edge->opos / 64.0, |
|
|
|
|
stem_edge->pos / 64.0, dist / 64.0, fitted_width / 64.0 )); |
|
|
|
@ -3068,12 +3068,12 @@ |
|
|
|
|
|
|
|
|
|
#ifdef FT_DEBUG_LEVEL_TRACE |
|
|
|
|
if ( !anchor ) |
|
|
|
|
FT_TRACE5(( " BLUE_ANCHOR: edge %d (opos=%.2f) snapped to %.2f," |
|
|
|
|
" was %.2f (anchor=edge %d)\n", |
|
|
|
|
FT_TRACE5(( " BLUE_ANCHOR: edge %ld (opos=%.2f) snapped to %.2f," |
|
|
|
|
" was %.2f (anchor=edge %ld)\n", |
|
|
|
|
edge1 - edges, edge1->opos / 64.0, blue->fit / 64.0, |
|
|
|
|
edge1->pos / 64.0, edge - edges )); |
|
|
|
|
else |
|
|
|
|
FT_TRACE5(( " BLUE: edge %d (opos=%.2f) snapped to %.2f," |
|
|
|
|
FT_TRACE5(( " BLUE: edge %ld (opos=%.2f) snapped to %.2f," |
|
|
|
|
" was %.2f\n", |
|
|
|
|
edge1 - edges, edge1->opos / 64.0, blue->fit / 64.0, |
|
|
|
|
edge1->pos / 64.0 )); |
|
|
|
@ -3122,7 +3122,7 @@ |
|
|
|
|
/* this should not happen, but it's better to be safe */ |
|
|
|
|
if ( edge2->blue_edge ) |
|
|
|
|
{ |
|
|
|
|
FT_TRACE5(( " ASSERTION FAILED for edge %d\n", edge2 - edges )); |
|
|
|
|
FT_TRACE5(( " ASSERTION FAILED for edge %ld\n", edge2 - edges )); |
|
|
|
|
|
|
|
|
|
af_latin_align_linked_edge( hints, dim, edge2, edge ); |
|
|
|
|
edge->flags |= AF_EDGE_DONE; |
|
|
|
@ -3190,7 +3190,7 @@ |
|
|
|
|
anchor = edge; |
|
|
|
|
edge->flags |= AF_EDGE_DONE; |
|
|
|
|
|
|
|
|
|
FT_TRACE5(( " ANCHOR: edge %d (opos=%.2f) and %d (opos=%.2f)" |
|
|
|
|
FT_TRACE5(( " ANCHOR: edge %ld (opos=%.2f) and %ld (opos=%.2f)" |
|
|
|
|
" snapped to %.2f and %.2f\n", |
|
|
|
|
edge - edges, edge->opos / 64.0, |
|
|
|
|
edge2 - edges, edge2->opos / 64.0, |
|
|
|
@ -3219,7 +3219,7 @@ |
|
|
|
|
|
|
|
|
|
if ( edge2->flags & AF_EDGE_DONE ) |
|
|
|
|
{ |
|
|
|
|
FT_TRACE5(( " ADJUST: edge %d (pos=%.2f) moved to %.2f\n", |
|
|
|
|
FT_TRACE5(( " ADJUST: edge %ld (pos=%.2f) moved to %.2f\n", |
|
|
|
|
edge - edges, edge->pos / 64.0, |
|
|
|
|
( edge2->pos - cur_len ) / 64.0 )); |
|
|
|
|
|
|
|
|
@ -3260,7 +3260,7 @@ |
|
|
|
|
edge->pos = cur_pos1 - cur_len / 2; |
|
|
|
|
edge2->pos = cur_pos1 + cur_len / 2; |
|
|
|
|
|
|
|
|
|
FT_TRACE5(( " STEM: edge %d (opos=%.2f) linked to %d (opos=%.2f)" |
|
|
|
|
FT_TRACE5(( " STEM: edge %ld (opos=%.2f) linked to %ld (opos=%.2f)" |
|
|
|
|
" snapped to %.2f and %.2f\n", |
|
|
|
|
edge - edges, edge->opos / 64.0, |
|
|
|
|
edge2 - edges, edge2->opos / 64.0, |
|
|
|
@ -3291,7 +3291,7 @@ |
|
|
|
|
edge->pos = ( delta1 < delta2 ) ? cur_pos1 : cur_pos2; |
|
|
|
|
edge2->pos = edge->pos + cur_len; |
|
|
|
|
|
|
|
|
|
FT_TRACE5(( " STEM: edge %d (opos=%.2f) linked to %d (opos=%.2f)" |
|
|
|
|
FT_TRACE5(( " STEM: edge %ld (opos=%.2f) linked to %ld (opos=%.2f)" |
|
|
|
|
" snapped to %.2f and %.2f\n", |
|
|
|
|
edge - edges, edge->opos / 64.0, |
|
|
|
|
edge2 - edges, edge2->opos / 64.0, |
|
|
|
@ -3314,7 +3314,7 @@ |
|
|
|
|
if ( edge->link && FT_ABS( edge->link->pos - edge[-1].pos ) > 16 ) |
|
|
|
|
{ |
|
|
|
|
#ifdef FT_DEBUG_LEVEL_TRACE |
|
|
|
|
FT_TRACE5(( " BOUND: edge %d (pos=%.2f) moved to %.2f\n", |
|
|
|
|
FT_TRACE5(( " BOUND: edge %ld (pos=%.2f) moved to %.2f\n", |
|
|
|
|
edge - edges, |
|
|
|
|
edge->pos / 64.0, |
|
|
|
|
edge[-1].pos / 64.0 )); |
|
|
|
@ -3416,7 +3416,7 @@ |
|
|
|
|
if ( delta < 64 + 16 ) |
|
|
|
|
{ |
|
|
|
|
af_latin_align_serif_edge( hints, edge->serif, edge ); |
|
|
|
|
FT_TRACE5(( " SERIF: edge %d (opos=%.2f) serif to %d (opos=%.2f)" |
|
|
|
|
FT_TRACE5(( " SERIF: edge %ld (opos=%.2f) serif to %ld (opos=%.2f)" |
|
|
|
|
" aligned to %.2f\n", |
|
|
|
|
edge - edges, edge->opos / 64.0, |
|
|
|
|
edge->serif - edges, edge->serif->opos / 64.0, |
|
|
|
@ -3426,7 +3426,7 @@ |
|
|
|
|
{ |
|
|
|
|
edge->pos = FT_PIX_ROUND( edge->opos ); |
|
|
|
|
anchor = edge; |
|
|
|
|
FT_TRACE5(( " SERIF_ANCHOR: edge %d (opos=%.2f)" |
|
|
|
|
FT_TRACE5(( " SERIF_ANCHOR: edge %ld (opos=%.2f)" |
|
|
|
|
" snapped to %.2f\n", |
|
|
|
|
edge-edges, edge->opos / 64.0, edge->pos / 64.0 )); |
|
|
|
|
} |
|
|
|
@ -3454,8 +3454,8 @@ |
|
|
|
|
after->pos - before->pos, |
|
|
|
|
after->opos - before->opos ); |
|
|
|
|
|
|
|
|
|
FT_TRACE5(( " SERIF_LINK1: edge %d (opos=%.2f) snapped to %.2f" |
|
|
|
|
" from %d (opos=%.2f)\n", |
|
|
|
|
FT_TRACE5(( " SERIF_LINK1: edge %ld (opos=%.2f) snapped to %.2f" |
|
|
|
|
" from %ld (opos=%.2f)\n", |
|
|
|
|
edge - edges, edge->opos / 64.0, |
|
|
|
|
edge->pos / 64.0, |
|
|
|
|
before - edges, before->opos / 64.0 )); |
|
|
|
@ -3464,7 +3464,7 @@ |
|
|
|
|
{ |
|
|
|
|
edge->pos = anchor->pos + |
|
|
|
|
( ( edge->opos - anchor->opos + 16 ) & ~31 ); |
|
|
|
|
FT_TRACE5(( " SERIF_LINK2: edge %d (opos=%.2f)" |
|
|
|
|
FT_TRACE5(( " SERIF_LINK2: edge %ld (opos=%.2f)" |
|
|
|
|
" snapped to %.2f\n", |
|
|
|
|
edge - edges, edge->opos / 64.0, edge->pos / 64.0 )); |
|
|
|
|
} |
|
|
|
@ -3484,7 +3484,7 @@ |
|
|
|
|
if ( edge->link && FT_ABS( edge->link->pos - edge[-1].pos ) > 16 ) |
|
|
|
|
{ |
|
|
|
|
#ifdef FT_DEBUG_LEVEL_TRACE |
|
|
|
|
FT_TRACE5(( " BOUND: edge %d (pos=%.2f) moved to %.2f\n", |
|
|
|
|
FT_TRACE5(( " BOUND: edge %ld (pos=%.2f) moved to %.2f\n", |
|
|
|
|
edge - edges, |
|
|
|
|
edge->pos / 64.0, |
|
|
|
|
edge[-1].pos / 64.0 )); |
|
|
|
@ -3505,7 +3505,7 @@ |
|
|
|
|
if ( edge->link && FT_ABS( edge->link->pos - edge[-1].pos ) > 16 ) |
|
|
|
|
{ |
|
|
|
|
#ifdef FT_DEBUG_LEVEL_TRACE |
|
|
|
|
FT_TRACE5(( " BOUND: edge %d (pos=%.2f) moved to %.2f\n", |
|
|
|
|
FT_TRACE5(( " BOUND: edge %ld (pos=%.2f) moved to %.2f\n", |
|
|
|
|
edge - edges, |
|
|
|
|
edge->pos / 64.0, |
|
|
|
|
edge[1].pos / 64.0 )); |
|
|
|
|