RFR: 8269806: Emoji rendering on Linux [v17]
Alexey Ushakov
avu at openjdk.org
Wed Feb 1 09:34:55 UTC 2023
On Tue, 31 Jan 2023 16:20:38 GMT, Nikita Gubarkov <duke at openjdk.org> wrote:
>> src/java.desktop/macosx/classes/sun/font/CCharToGlyphMapper.java line 92:
>>
>>> 90:
>>> 91: private static int unicodeToUnits(int unicode, int dstOffset, char[] dst) {
>>> 92: if (unicode >= 0x10000) {
>>
>> Why can't you use public API that already does this ? [ ](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Character.html#toChars(int,char%5B%5D,int)) ?
>
> Which API exactly? I didn't know there is any, so I added this as a helper method.
I suppose it's https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Character.html#charCount(int)
-------------
PR: https://git.openjdk.org/jdk/pull/4798
More information about the client-libs-dev
mailing list