sapegin / grunt-webfont

SVG to webfont converter for Grunt
MIT License
1.11k stars 210 forks source link

Always pass glyph name to createChar() #335

Closed jfkthame closed 8 years ago

jfkthame commented 8 years ago

In order to create unencoded glyphs (by specifying their codepoint as -1), it's necessary to pass a name to createChar. This is useful for glyphs that should not appear in the cmap, but will be accessed by OpenType features created later, separately from the grunt-webfont task.

sapegin commented 8 years ago

What about node engine?

jfkthame commented 8 years ago

AFAICS, the node engine doesn't support creating unencoded glyphs, or at least it's not obvious how to do so (a brief attempt resulted in failure with "Fatal error: The glyph "u00a9_layer0" codepoint seems to be used already elsewhere"). This comes from svgicons2svgfont.

It's presumably possible to add support for this to the node engine's toolchain, but I don't have the time or expertise to dig in there and figure it out, sorry.

timdream commented 8 years ago

@sapegin Could you publish a new version please?

sapegin commented 8 years ago

@timdream Done.