AndreMiras / fa2png

FontAwesome to PNG
http://andremiras.github.io/fa2png/
MIT License
6 stars 5 forks source link

Easy FontAwesome dependency update #3

Closed AndreMiras closed 8 years ago

AndreMiras commented 8 years ago

Updating the FontAwesome version should be as simple as possible. Unfortunately the icon list is currently hardcoded in current iconpicker we're using. https://github.com/mjolnic/fontawesome-iconpicker/blob/1.2.0/src/js/iconpicker.js#L821 However it seems possible to update it at runtime using, the "icons" parameter of the iconpicker constructor. https://github.com/mjolnic/fontawesome-iconpicker/blob/1.2.0/README.md#available-options We could probably use it with a yaml parser to dynamically update the list depending on the FontAwesome version.

$.get('https://rawgit.com/FortAwesome/Font-Awesome/v4.6.3/src/icons.yml', function(data) {
  var parsed_yaml = jsyaml.load(data);
  // TODO: update the icons list using the parsed_yaml
});
AndreMiras commented 8 years ago

Fixed in 58f13b4.