[autofit] Remove unused structure members.
* src/autofit/afhints.h (AF_SegmentRec, AF_EdgeRec): Remove `num_linked'. * src/autofit/afcjk.c (af_cjk_hints_link_segments): Updated.
This commit is contained in:
parent
aab2b8d83e
commit
8b8c4408dd
@ -1,3 +1,12 @@
|
||||
2016-07-02 Werner Lemberg <wl@gnu.org>
|
||||
|
||||
[autofit] Remove unused structure members.
|
||||
|
||||
* src/autofit/afhints.h (AF_SegmentRec, AF_EdgeRec): Remove
|
||||
`num_linked'.
|
||||
|
||||
* src/autofit/afcjk.c (af_cjk_hints_link_segments): Updated.
|
||||
|
||||
2016-07-02 Werner Lemberg <wl@gnu.org>
|
||||
|
||||
[autofit] Update to Unicode 9.0.0.
|
||||
|
@ -966,15 +966,12 @@
|
||||
|
||||
if ( seg2 )
|
||||
{
|
||||
seg2->num_linked++;
|
||||
if ( seg2->link != seg1 )
|
||||
{
|
||||
seg1->link = NULL;
|
||||
|
||||
if ( seg2->score < dist_threshold || seg1->score < seg2->score * 4 )
|
||||
seg1->serif = seg2->link;
|
||||
else
|
||||
seg2->num_linked--;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -269,7 +269,6 @@ FT_BEGIN_HEADER
|
||||
|
||||
AF_Segment link; /* (stem) link segment */
|
||||
AF_Segment serif; /* primary segment for serifs */
|
||||
FT_Pos num_linked; /* number of linked segments */
|
||||
FT_Pos score; /* used during stem matching */
|
||||
FT_Pos len; /* used during stem matching */
|
||||
|
||||
@ -292,7 +291,6 @@ FT_BEGIN_HEADER
|
||||
AF_Width blue_edge; /* non-NULL if this is a blue edge */
|
||||
AF_Edge link; /* link edge */
|
||||
AF_Edge serif; /* primary edge for serifs */
|
||||
FT_Short num_linked; /* number of linked edges */
|
||||
FT_Int score; /* used during stem matching */
|
||||
|
||||
AF_Segment first; /* first segment in edge */
|
||||
|
Loading…
Reference in New Issue
Block a user