omacranger / fontawesome-subset

Creates subsets of FontAwesome fonts for optimized use on the web.
GNU General Public License v3.0
66 stars 15 forks source link

Refactor FontAwesome Icon Parser #20

Closed omacranger closed 2 years ago

omacranger commented 2 years ago

Heavily inspired by the work done in #19, @saurori and @christopherpickering, with some refinements & refactoring to be more closely matched to the original code. Refactors the library to use subset-font underneath and extract glyphs based on icon names and merge them into separate fonts. This should allow versions >=5.12.0 -- including 6.0+. Reduced font outputs to ttf and woff2 only following FA's lead. Also includes fixes for Duotone icons.

Closes #15 Closes #16 Closes #17

christopherpickering commented 2 years ago

Thanks, I tested it out on one of my sites and seems to work well 👍🏽

omacranger commented 2 years ago

Newest push should also resolve Duotone icons breaking since 5.10, as reported in #15.