* src/pfr/pfrobjs.c (pfr_slot_load): fixed a small bug that returned
incorrect advances when the outline resolution was different from the metrics resolution * src/autohint/ahhint.c: removing compiler warnings * src/autohint/ahglyph.c: slight improvements to the serif detection code. More work is needed though..
This commit is contained in:
parent
699053ca75
commit
dcb61e4785
11
ChangeLog
11
ChangeLog
|
@ -1,3 +1,14 @@
|
||||||
|
2002-07-04 David Turner <david@freetype.org>
|
||||||
|
|
||||||
|
* src/pfr/pfrobjs.c (pfr_slot_load): fixed a small bug that returned
|
||||||
|
incorrect advances when the outline resolution was different from the
|
||||||
|
metrics resolution
|
||||||
|
|
||||||
|
* src/autohint/ahhint.c: removing compiler warnings
|
||||||
|
|
||||||
|
* src/autohint/ahglyph.c: slight improvements to the serif detection
|
||||||
|
code. More work is needed though..
|
||||||
|
|
||||||
2002-07-03 David Turner <david@freetype.org>
|
2002-07-03 David Turner <david@freetype.org>
|
||||||
|
|
||||||
* src/autohint/ahglobal.c, src/autohint/ahtypes.h, src/autohint/ahhint.c:
|
* src/autohint/ahglobal.c, src/autohint/ahtypes.h, src/autohint/ahhint.c:
|
||||||
|
|
|
@ -984,14 +984,13 @@
|
||||||
max = seg2->max_coord;
|
max = seg2->max_coord;
|
||||||
|
|
||||||
len = max - min;
|
len = max - min;
|
||||||
|
if ( len >= 8 )
|
||||||
|
{
|
||||||
dist = seg2->pos - seg1->pos;
|
dist = seg2->pos - seg1->pos;
|
||||||
if ( dist < 0 )
|
if ( dist < 0 )
|
||||||
dist = -dist;
|
dist = -dist;
|
||||||
|
|
||||||
if ( len < 8 )
|
score = dist + 3000/len;
|
||||||
score = 300*8 + dist - len*3;
|
|
||||||
else
|
|
||||||
score = dist + 300/len;
|
|
||||||
|
|
||||||
if ( score < best_score )
|
if ( score < best_score )
|
||||||
{
|
{
|
||||||
|
@ -1000,6 +999,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if ( best_segment )
|
if ( best_segment )
|
||||||
{
|
{
|
||||||
|
|
|
@ -40,7 +40,7 @@
|
||||||
/*************************************************************************/
|
/*************************************************************************/
|
||||||
/*************************************************************************/
|
/*************************************************************************/
|
||||||
|
|
||||||
|
#if 0
|
||||||
/* snap a given width in scaled coordinates to one of the */
|
/* snap a given width in scaled coordinates to one of the */
|
||||||
/* current standard widths */
|
/* current standard widths */
|
||||||
static FT_Pos
|
static FT_Pos
|
||||||
|
@ -86,7 +86,7 @@
|
||||||
|
|
||||||
return width;
|
return width;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/* compute the snapped width of a given stem */
|
/* compute the snapped width of a given stem */
|
||||||
static FT_Pos
|
static FT_Pos
|
||||||
|
@ -364,7 +364,6 @@
|
||||||
|
|
||||||
{
|
{
|
||||||
FT_Bool min = 0;
|
FT_Bool min = 0;
|
||||||
FT_Pos delta;
|
|
||||||
|
|
||||||
if ( !anchor )
|
if ( !anchor )
|
||||||
{
|
{
|
||||||
|
|
|
@ -277,9 +277,9 @@
|
||||||
advance = FT_MulDiv( advance, em_outline, em_metrics );
|
advance = FT_MulDiv( advance, em_outline, em_metrics );
|
||||||
|
|
||||||
if ( face->phy_font.flags & PFR_PHY_VERTICAL )
|
if ( face->phy_font.flags & PFR_PHY_VERTICAL )
|
||||||
metrics->vertAdvance = gchar->advance;
|
metrics->vertAdvance = advance;
|
||||||
else
|
else
|
||||||
metrics->horiAdvance = gchar->advance;
|
metrics->horiAdvance = advance;
|
||||||
|
|
||||||
slot->root.linearHoriAdvance = metrics->horiAdvance;
|
slot->root.linearHoriAdvance = metrics->horiAdvance;
|
||||||
slot->root.linearVertAdvance = metrics->vertAdvance;
|
slot->root.linearVertAdvance = metrics->vertAdvance;
|
||||||
|
|
Loading…
Reference in New Issue