Skip to content
This repository has been archived by the owner on Mar 8, 2024. It is now read-only.

Commit

Permalink
fix merge issues after merge from 8u242
Browse files Browse the repository at this point in the history
  • Loading branch information
JB-Dmitry committed Jan 21, 2020
1 parent 58d685e commit f51c579
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions src/share/native/sun/font/freetypeScaler.c
Original file line number Diff line number Diff line change
Expand Up @@ -973,7 +973,7 @@ Java_sun_font_FreetypeFontScaler_getFontMetricsNative(
jlong pScalerContext, jlong pScaler) {

jobject metrics;
jfloat ax, ay, dx, dy, bx, by, lx, ly, mx, my, txx, txy, tyx, tyy;
jfloat ax, ay, dx, dy, bx, by, lx, ly, mx, my;
jfloat f0 = 0.0;
FTScalerContext *context =
(FTScalerContext*) jlong_to_ptr(pScalerContext);
Expand Down Expand Up @@ -1052,20 +1052,6 @@ Java_sun_font_FreetypeFontScaler_getFontMetricsNative(
scalerInfo->face->size->metrics.y_scale));
my = 0;

// apply transformation matrix
txx = (jfloat) FTFixedToFloat(context->transform.xx);
txy = (jfloat) -FTFixedToFloat(context->transform.xy);
tyx = (jfloat) -FTFixedToFloat(context->transform.yx);
tyy = (jfloat) FTFixedToFloat(context->transform.yy);
ax = txy * ay;
ay = tyy * ay;
dx = txy * dy;
dy = tyy * dy;
lx = txy * ly;
ly = tyy * ly;
my = tyx * mx;
mx = txx * mx;

metrics = (*env)->NewObject(env,
sunFontIDs.strikeMetricsClass,
sunFontIDs.strikeMetricsCtr,
Expand Down

0 comments on commit f51c579

Please sign in to comment.