Uploaded image for project: 'Fluid Infusion'
  1. Fluid Infusion
  2. FLUID-6244

Implement a build process for construction icon fonts in the Infusion-Icons repo



    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Infusion-Icons
    • Labels:


      The Infusion-Icons repo contains all of the SVGs that having been prepared for use as icons based off of the Infusion Icons Visual Style Guide.


      We've been having discussions about how to best convert these into font icons. The "Standard workflow in maintaining and creating icon fonts" wiki page describes a process for using grunt-webfont to generate the icon font. This process seems to work with the caveat that the node engine is not robust enough. We've done some investigation and the fontforge engine seems to produce good icons, however, fontforge is a separate install.


      The initial plan was for a project to pull in Infusion-Icons via npm and run grunt-webfont locally to generate the projects specific icon font. However, the need to install fontforge separately makes this problematic. 


      Here's the suggestion for a new process:

      • In Infusion-Icons add a grunt task to generate an icon font that includes all of the icons
      • In Infusion-Icons add a grunt task for building a custom icon font based on a config file
        • The config file will be versioned in the project's repo (e.g. Infusion), and include the paths to the SVGs to use, and their codepoints
        • The config file would be able to contain any configuration that is valid for grunt-webfont task
      • After an icon font is generated, the implementor will need to manually place it in the specific project

      Example config:

          src: [
          options: {
              font: "custom-icons",
              codepoints: {
                  "contrast": 0xE005,
                  "reset-undo-arrow": 0xE008,
                  "line-space-expanded": 0xE009,
                  "line-space-condensed": 0xE00a,
                  "line-space": 0xE00b




            jobara Justin Obara
            jobara Justin Obara
            0 Vote for this issue
            1 Start watching this issue