JBR-2050 Issue with keycap emojis

port from JBR 11 to JBR 15 (cherry picked from commit ae91e1d7f1)

cherry picked from commit d3018a1837
This commit is contained in:
Dmitry Batrak
2020-01-30 17:33:27 +03:00
committed by alexey.ushakov@jetbrains.com
parent d71c368588
commit 09c70729a3

View File

@@ -134,7 +134,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.
@@ -301,6 +301,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;
}