boolean (@NotNull Font font, int codePoint, boolean disableFontFallback) { if (!Character.isValidCodePoint(codePoint)) return false; if (disableFontFallback && SystemInfo.isMac) { int glyphCode = font.createGlyphVector(DEFAULT_CONTEXT, new String(new int[]{codePoint}, 0, 1)).getGlyphCode(0); return (glyphCode & CompositeGlyphMapper.GLYPHMASK) != 0 && (glyphCode & CompositeGlyphMapper.SLOTMASK) == 0; } else { return font.canDisplay(codePoint); } }