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 Vitaly Provodin
parent 1df892c53a
commit 981d03b524

View File

@@ -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;
}