mirror of
https://github.com/JetBrains/JetBrainsRuntime.git
synced 2026-01-10 10:31:39 +01:00
JBR-3255 Applying 'incline' transform might change character's advance
(cherry picked from commitb37f7cfdb1) (cherry picked from commit2bd6c80390)
This commit is contained in:
@@ -782,7 +782,7 @@ Java_sun_font_FreetypeFontScaler_createScalerContextNative(
|
||||
return (jlong) 0;
|
||||
}
|
||||
(*env)->GetDoubleArrayRegion(env, matrix, 0, 4, dmat);
|
||||
ptsz = euclidianDistance(dmat[2], dmat[3]); //i.e. y-size
|
||||
ptsz = euclidianDistance(dmat[0], dmat[1]); //i.e. x-size
|
||||
if (ptsz < 1.0) {
|
||||
//text can not be smaller than 1 point
|
||||
ptsz = 1.0;
|
||||
|
||||
Reference in New Issue
Block a user