fix direction of vertical glyph offsets (regression introduced by backporting JDK 9 changes for JRE-33)

port commit 9b98eaf0 from JBR 9

port from JBR 11 to JBR 15 (cherry picked from commit cbf4d301ee)

cherry picked from commit e6752600a5
This commit is contained in:
Dmitry Batrak
2018-12-24 14:53:40 +03:00
committed by alexey.ushakov@jetbrains.com
parent 1cc7f266eb
commit fefb093db4

View File

@@ -142,7 +142,7 @@ jboolean storeGVData(JNIEnv* env,
positions[storei*2] = startX + x + glyphPos[i].x_offset * scale;
positions[(storei*2)+1] = startY + y - glyphPos[i].y_offset * scale;
x += glyphPos[i].x_advance * scale;
y += glyphPos[i].y_advance * scale;
y -= glyphPos[i].y_advance * scale;
storei++;
}
storeadv = initialCount + glyphCount;