This app is used to generate the FontAwesomeIcon enum for Dalamud.
- Downloads latest font and metadata from FontAwesome Github.
- Loads icons and categories from FontAwesome metadata.
- Loads current dalamud icons from
dalamud_icons.json
. - Generates FontAwesomeIcon.cs for copying into Dalamud.
- Adds Obsolete attribute to icons removed from FontAwesome or in excluded sets (e.g. brands).
- Adds Categories/SearchTerms attributes based on FontAwesome metadata.
- Excludes icons that have a hidden state per
dalamud_icons.json
. - Avoids changing unicode values by referencing
dalamud_icons.json
.
- Updates
dalamud_icons.json
with latest icons.
- Open in Rider or Visual Studio.
- Run application.
- Copy
FontAwesomeFreeSolid.otf
to DalamudAssets. - Copy
FontAwesomeIcon.cs
to Dalamud. - Commit
dalamud_icons.json
changes.
- Update "state" in
dalamud_icons.json
to2
. - Follow usual update steps.
/// <summary>
/// The Font Awesome "cow" icon unicode character.
/// </summary>
[FontAwesomeSearchTerms(new[] { "livestock", "mammal", "milk", "moo" })]
[FontAwesomeCategoriesAttribute(new[] { "Animals", "Humanitarian" })]
Cow = 0xF6C8,