Skip to content
This repository has been archived by the owner on May 19, 2020. It is now read-only.

How to use Glyph Fields Generator

Elvin (Tharindu) Thudugala edited this page Aug 26, 2019 · 1 revision

For FontAwesome5Pro

  1. Download Font (Pro for Desktop) from https://fontawesome.com/download
  2. Unzip
  3. Copy icons.json in metadata folder to tools\GlyphFieldsGenerator\GlyphFieldsFontAwesome5Pro folder
  4. Go to https://app.quicktype.io
  5. Set Generated namespace to GlyphFieldsFontAwesome5Pro
  6. Set Name to IconJson
  7. Copy icons.json content to Json panel
  8. Copy the generated Code to tools\GlyphFieldsGenerator\GlyphFieldsFontAwesome5Pro\IconJson.cs file
  9. Open tools\GlyphFieldsGenerator\GlyphFieldsGenerator.sln solution
  10. Change libName const to correct version in GlyphFieldsFontAwesome5Pro\Program.cs
  11. Build and Run GlyphFieldsFontAwesome5Pro project
  12. This will generate GlyphListBrands.cs, GlyphListDuotone.cs, GlyphListLight.cs, GlyphListRegular.cs and GlyphListSolid.cs files for you in Plugin.Glypher.FontAwesome5Pro project

For FontAwesome5Free

  1. Download Font (Fre for Desktop) from https://fontawesome.com/download
  2. Unzip
  3. Copy icons.json in metadata folder to tools\GlyphFieldsGenerator\GlyphFieldsFontAwesome5Free folder
  4. Go to https://app.quicktype.io
  5. Set Generated namespace to GlyphFieldsFontAwesome5Free
  6. Set Name to IconJson
  7. Copy icons.json content to Json panel
  8. Copy the generated Code to tools\GlyphFieldsGenerator\GlyphFieldsFontAwesome5Free\IconJson.cs file
  9. Open tools\GlyphFieldsGenerator\GlyphFieldsGenerator.sln solution
  10. Change libName const to correct version in GlyphFieldsFontAwesome5Free\Program.cs
  11. Build and Run GlyphFieldsFontAwesome5Free project
  12. This will generate GlyphListBrands.cs, GlyphListRegular.cs and GlyphListSolid.cs files for you in Plugin.Glypher.FontAwesome5Free project
  13. Copy Font Awesome 5 Brands-Regular-400.otf, Font Awesome 5 Free-Regular-400.otf and Font Awesome 5 Free-Solid-900.otf in otfs folder to fonts\fontawesome-free-[version]-desktop folder
Clone this wiki locally