Skip to content

Build an asset font for custom icons #200

Closed
@gnprice

Description

@gnprice

Much like we do in zulip-mobile and Zulip web. We'll want a font file containing the icons, and then a generated Dart file that maps icon names to glyph IDs in the font.

For references, see:

  • tools/build-icon-font in zulip-mobile, which is a Node script doing a similar job using the NPM package @vusion/webfonts-generator
  • the Dart script that Lucide uses to generate the mapping file when building their Flutter package (but that script consumes a file that something else generated, which provides the data just in a different format)

It would be nice if we can write the script purely in Dart. If we can't readily lay hands on appropriate tools to make that easy, we could settle for having a Node script so that we can use NPM packages.

The generated output — both the font file and the generated Dart file — should be committed to the repo, just like we do for other generated files and just like we do for the corresponding files in zulip-mobile. That way the script only has to be run when changing the set of icons, and there's no complication added to a normal development cycle.

Metadata

Metadata

Assignees

Labels

a-designVisual and UX designa-toolsOur own development tooling, scripts, and infrastructure

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions