Werner Lemberg pushed to branch master at FreeType / FreeType
Commits:
-
825b7ea2
by Werner Lemberg at 2021-07-12T22:11:24+02:00
4 changed files:
Changes:
1 |
+2021-07-12 Werner Lemberg <wl@gnu.org>
|
|
2 |
+ |
|
3 |
+ [autofit] More clean-ups.
|
|
4 |
+ |
|
5 |
+ * src/autofit/afhints.h (AF_GlyphHintsRec): Remove the no longer
|
|
6 |
+ needed fields `xmin_delta` and `xmax_delta`.
|
|
7 |
+ |
|
8 |
+ * src/autofit/afhints.c (af_glyph_hints_reload),
|
|
9 |
+ src/autofit/afloader.c (af_loader_load_glyph): Updated.
|
|
10 |
+ |
|
1 | 11 |
2021-07-12 Werner Lemberg <wl@gnu.org>
|
2 | 12 |
|
3 | 13 |
Small clean-ups for the last few commits.
|
... | ... | @@ -953,9 +953,6 @@ |
953 | 953 |
hints->x_delta = x_delta;
|
954 | 954 |
hints->y_delta = y_delta;
|
955 | 955 |
|
956 |
- hints->xmin_delta = 0;
|
|
957 |
- hints->xmax_delta = 0;
|
|
958 |
- |
|
959 | 956 |
points = hints->points;
|
960 | 957 |
if ( hints->num_points == 0 )
|
961 | 958 |
goto Exit;
|
... | ... | @@ -362,9 +362,6 @@ FT_BEGIN_HEADER |
362 | 362 |
/* implementations */
|
363 | 363 |
AF_StyleMetrics metrics;
|
364 | 364 |
|
365 |
- FT_Pos xmin_delta; /* used for warping */
|
|
366 |
- FT_Pos xmax_delta;
|
|
367 |
- |
|
368 | 365 |
/* Two arrays to avoid allocation penalty. */
|
369 | 366 |
/* The `embedded' structure must be the last element! */
|
370 | 367 |
struct
|
... | ... | @@ -473,8 +473,8 @@ |
473 | 473 |
FT_Pos pp2x = loader->pp2.x;
|
474 | 474 |
|
475 | 475 |
|
476 |
- loader->pp1.x = FT_PIX_ROUND( pp1x + hints->xmin_delta );
|
|
477 |
- loader->pp2.x = FT_PIX_ROUND( pp2x + hints->xmax_delta );
|
|
476 |
+ loader->pp1.x = FT_PIX_ROUND( pp1x );
|
|
477 |
+ loader->pp2.x = FT_PIX_ROUND( pp2x );
|
|
478 | 478 |
|
479 | 479 |
slot->lsb_delta = loader->pp1.x - pp1x;
|
480 | 480 |
slot->rsb_delta = loader->pp2.x - pp2x;
|