FontCustom / fontcustom

Generate custom icon webfonts from the comfort of the command line.
3.29k stars 423 forks source link

Respect source #397

Open sivizius opened 1 year ago

sivizius commented 1 year ago

At the moment, glyphs.<name>.source set in the manifest is ignored and glyphs is generated by iterating over the files in the directory set in options.input.vectors using the codepoint set in glyphs.<name>.codepoint. However, one might have multiple codepoints with the same glyph, e.g. a placeholder or aliases, so glyphs.<name>.source should be respected.

With this patch, if no source was set, the source is derived from options.input.vectors and the name. Only if glyphs is empty, the previous approach of deriving the glyphs by iterating over the vector-files is used.