You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I tried to generate a font overriding the "👥" symbol (codepoint: 128101), fantasticon seems to change the codepoint to 61697.
The problem seems to be
I am currently trying to create a font for Hentaigana (U+1B000 - U+1B0FF). It would be very convenient if I could combine svgs to create the font file, but is currently prevented from doing so due to this.
While analyzing this issue, I found a similar problem in the svgicons2svgfont package, which fantasticon depends on. nfroidure/svgicons2svgfont#96
Hence it might take a little more than fixing the line that @eposjk has pointed out.
I would be more than happy to help regarding this issue. 🙂
MLoughry
added a commit
to MLoughry/fantasticon
that referenced
this issue
Feb 8, 2023
When I tried to generate a font overriding the "👥" symbol (codepoint: 128101), fantasticon seems to change the codepoint to 61697.
The problem seems to be
fantasticon/src/generators/asset-types/svg.ts
Line 33 in fd54837
According to https://developer.mozilla.org/de/docs/Web/JavaScript/Reference/Global_Objects/String/fromCharCode
String.fromCharCode() only supports 16-bit codepoints. ES2015 offers a similar function String.fromCodePoint() which does not have that restriction.
When I replace it locally, it seems to work.
The text was updated successfully, but these errors were encountered: