You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Font Awesome allows users with a "Pro" subscription to upload custom icons which will include those along with the stock icons. When the icon pack is downloaded, they are included as a style named "custom-icons":
When this custom-icons.svg sprite is placed in the sprites directory as instructed in the README, they are ignored entirely. This can be fixed by adding an entry to mappings at IconsetEnumGenerator:110. I would propose fa-kit as the key, to match the css class used by Font Awesome to target these custom icons. Alternatively, you could use fak, to keep things more in line with the existing keys.
Adding the extra style has one side effect: the Enum name for the Java class is based on the filename of the sprite. However, Java doesn't support hyphens in class names. To allow for easy copy/pasting of these sprites, the code should transform kebab-case into PascalCase automatically when generating the name of the enum.
The text was updated successfully, but these errors were encountered:
jdewaen
pushed a commit
to datadobi/FontAwesomeIronIconset
that referenced
this issue
Oct 13, 2023
Font Awesome allows users with a "Pro" subscription to upload custom icons which will include those along with the stock icons. When the icon pack is downloaded, they are included as a style named "custom-icons":
When this
custom-icons.svg
sprite is placed in thesprites
directory as instructed in the README, they are ignored entirely. This can be fixed by adding an entry tomappings
atIconsetEnumGenerator:110
. I would proposefa-kit
as the key, to match the css class used by Font Awesome to target these custom icons. Alternatively, you could usefak
, to keep things more in line with the existing keys.Adding the extra style has one side effect: the Enum name for the Java class is based on the filename of the sprite. However, Java doesn't support hyphens in class names. To allow for easy copy/pasting of these sprites, the code should transform kebab-case into PascalCase automatically when generating the name of the enum.
The text was updated successfully, but these errors were encountered: