tancredi / fantasticon

Icon font generation tool
MIT License
937 stars 103 forks source link

Unable to use codepoints.json file #224

Open miguelsolorio opened 3 years ago

miguelsolorio commented 3 years ago

Trying to follow the instructions in this repo for setting up a codepoints.json file. The README says there are two options:

pathOptions: {
    json: './misc/icon-codepoints.json'
  },
  codepoints: {
    'chevron-left': 57344, // decimal representation of 0xe000
    'chevron-right': 57345,
    'thumbs-up': 57358,
    'thumbs-down': 57359
  },

When i reference codepoints directly (2nd option) the unicodes are correctly applied. But when used with the pathOptions (1st option) I am seeing the entire file ignore. What is the best way to reference and use a codepoints file?

Also, the README + cli helper would greatly benefit with more information as there's information in multiple areas and you have to hunt for the info by searching the repo + issues.

mgibas commented 3 years ago

pathOptions.json specifies where to save json file, not where to read it from.

miguelsolorio commented 3 years ago

@mgibas it would be helpful if the README explained this otherwise everyone else is just guessing