JBR-1624 Fonts rendering is broken in the 2019.2 EAP (Fira Code)

Corrected lookup for bold fonts

(cherry picked from commit 114b8af38f)
This commit is contained in:
Alexey Ushakov
2019-07-28 23:45:08 +02:00
committed by alexey.ushakov@jetbrains.com
parent 54caa8a460
commit 863de0c968

View File

@@ -223,7 +223,7 @@ public class FontFamily {
case Font.BOLD:
case Font.BOLD|Font.ITALIC:
return (Math.abs(newWeight - Font2D.FWEIGHT_BOLD) <
return (Math.abs(newWeight - Font2D.FWEIGHT_BOLD) <=
Math.abs(currFont.getWeight() - Font2D.FWEIGHT_BOLD));
default: