mirror of
https://github.com/JetBrains/JetBrainsRuntime.git
synced 2025-12-06 09:29:38 +01:00
JBR-3255 Applying 'incline' transform might change character's advance
(cherry picked from commit b37f7cfdb1)
This commit is contained in:
committed by
alexey.ushakov@jetbrains.com
parent
4d8d4955ed
commit
18c5c7e80d
@@ -747,7 +747,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