mirror of
https://github.com/JetBrains/JetBrainsRuntime.git
synced 2025-12-06 09:29:38 +01:00
JBR-2050 Issue with keycap emojis
port from JBR 11 to JBR 15 (cherry picked from commitae91e1d7f1) cherry picked from commitd3018a1837
This commit is contained in:
committed by
Vitaly Provodin
parent
1df892c53a
commit
981d03b524
@@ -135,7 +135,7 @@ public final class FontUtilities {
|
||||
* where the caller interprets 'layout' to mean any case where
|
||||
* one 'char' (ie the java type char) does not map to one glyph
|
||||
*/
|
||||
public static final int MAX_LAYOUT_CHARCODE = 0x206F;
|
||||
public static final int MAX_LAYOUT_CHARCODE = 0x20F0;
|
||||
|
||||
/**
|
||||
* Calls the private getFont2D() method in java.awt.Font objects.
|
||||
@@ -302,6 +302,9 @@ public final class FontUtilities {
|
||||
else if (code >= 0x206a && code <= 0x206f) { // directional control
|
||||
return true;
|
||||
}
|
||||
else if (code >= 0x20d0) { // U+20D0 - U+20F0 combining diacritical marks for symbols
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user