Downloaded from https://download.savannah.gnu.org/releases/freetype/freetype-2.14.2.tar.xz Change-Id: I5f1896b71497be9b730c0725e23c48d3d1c893dd Reviewed-on: https://gerrit.libreoffice.org/c/core/+/200776 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
28 lines
1005 B
Diff
28 lines
1005 B
Diff
--- src/autofit/aflatin.c
|
|
+++ src/autofit/aflatin.c
|
|
@@ -3711,11 +3711,13 @@
|
|
/* We also check that the y minimum of the 'other' contour */
|
|
/* is below the high contour to avoid potential false hits */
|
|
/* with contours enclosed in the high one. */
|
|
+ if (max_y != FT_LONG_MIN) {
|
|
distance = SUB_LONG( high_min_y, max_y );
|
|
if ( distance < 64 &&
|
|
distance < min_distance &&
|
|
min_y < high_min_y )
|
|
min_distance = distance;
|
|
+ }
|
|
}
|
|
|
|
adjustment_amount = 64 - min_distance;
|
|
--- src/truetype/ttgxvar.c
|
|
+++ src/truetype/ttgxvar.c
|
|
@@ -1217,7 +1217,7 @@
|
|
per_region_size *= 2;
|
|
}
|
|
|
|
- bytes = varData->deltaSet + per_region_size * innerIndex;
|
|
+ bytes = varData->deltaSet ? varData->deltaSet + per_region_size * innerIndex : NULL;
|
|
|
|
/* outer loop steps through master designs to be blended */
|
|
for ( master = 0; master < varData->regionIdxCount; master++ )
|