Workshape / icon-font-generator

Easy-to-use, pre-configured cli tool to generate webfont icon kits from a bunch of .svg files
MIT License
471 stars 76 forks source link

Hex codepoints support #56

Open DRSDavidSoft opened 5 years ago

DRSDavidSoft commented 5 years ago

Currently, this library only supports decimal codepoints:

{
    "icon-name": "61579"
}

Could you please add support for hex codepoints like this?

{
    "icon-name": "\\f08b"
}

decimal 61579 == hex \f08b

mdversion01 commented 5 years ago

I guess there's been no movement on this? Been trying to generate them with --codepoint, but it doesn't like letters, and the hex's that it 'randomly' generates, belong to other icons.

adamjhickey commented 4 years ago

It is strange that hex are output but decimal is required for input, unless I was just doing something wrong. I just convert the hex values with a script that runs them through parseInt(hexVal.slice(1), 16); and write a new json file.