mirror of
https://github.com/JetBrains/JetBrainsRuntime.git
synced 2025-12-06 09:29:38 +01:00
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:
committed by
alexey.ushakov@jetbrains.com
parent
54caa8a460
commit
863de0c968
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user