Skip to content
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

unicode points above 0xffff are truncated #3

Open
vampirefrog opened this issue Mar 18, 2018 · 0 comments
Open

unicode points above 0xffff are truncated #3

vampirefrog opened this issue Mar 18, 2018 · 0 comments

Comments

@vampirefrog
Copy link

Hello. Because you are using String.fromCharCode(), any Unicode code points above 0xffff are unusable. It is recommended to use String.fromCodePoint(). Please check out https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/fromCharCode#Getting_it_to_work_with_higher_values

Thanks for a great tool! I am using it to convert bitmap fonts extracted from an emulation ROM (The Sharp X68000 fonts). I use a php script to extract bitmaps, and potrace and svgo to genenerate the svg files, and then glyphs2font to generate the final font. Works great if I do the modification above!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant