mirror of
https://github.com/JetBrains/JetBrainsRuntime.git
synced 2025-12-22 09:19:37 +01:00
JBR-1714 Italic text is displayed using incorrect glyphs on Windows
port from JBR 11 to JBR 15 (cherry picked from commits46e4cdfcbd,9cc5cbc99b) cherry picked from commit6769b27e53(cherry picked from commiteccee72823)
This commit is contained in:
@@ -388,8 +388,12 @@ public class FileFontStrike extends PhysicalStrike {
|
||||
|
||||
long getGlyphImageFromWindows(int glyphCode) {
|
||||
String family = fileFont.getFamilyName(null);
|
||||
FontFamily fontFamily = FontFamily.getFamily(family);
|
||||
int style = desc.style & Font.BOLD | desc.style & Font.ITALIC
|
||||
| fileFont.getStyle();
|
||||
if (fontFamily != null && fontFamily.getFont(style) != fileFont) {
|
||||
style = fileFont.getStyle();
|
||||
}
|
||||
int size = intPtSize;
|
||||
byte charset = fileFont.getSupportedCharset();
|
||||
long ptr = 0;
|
||||
|
||||
Reference in New Issue
Block a user