-
-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow startUnicode to start at 0xf0000 #256
Comments
@exil Hello! This issue is because You can try replacing Line 283 in ea1fd1e
Line 288 in ea1fd1e
- let encodedCodes: string | number = _code.charCodeAt(0);
+ let encodedCodes: string | number = _code.codePointAt(0); Line 38 in ea1fd1e
- const curUnicode = String.fromCharCode(startUnicode);
+ const curUnicode = String.fromCodePoint(startUnicode); |
@exil Did you try? |
I have not had a chance to try yet but I will keep you updated. |
I would like to have the
startUnicode
value be0xf0000
but it does not seem to work. From what I can tell it is becauseString.fromCharCode
used inwriteFontStream
only works up to0xffff
. Is it possible to support 5 digit unicode characters (such as usingString.fromCodePoint
instead?) or is there perhaps some workaround I can use in the meantime?The text was updated successfully, but these errors were encountered: