Page MenuHomePhabricator

What icon formats are we going to continuously support?
Closed, ResolvedPublic

Description

Currently we are offering in “WikiFont” Wikimedia UI icons repository:

  • SVGs of all web icons (one icon per file)
  • Font files with all web icons in the following formats:
    • EOT
    • TTF
    • WOFF
    • WOFF2
    • SVG Glyphs

App icons are not included.

Question:

  • Do we continue to support all those formats, or even more (like PNG)?

Resulting answer as of 2016-08-15:

  • Original (uncompressed) SVGs as source files, with editor metadata included and
  • compressed, production-ready SVGs.

The compression is part and possible step in a build process of the icon repository.

Event Timeline

From the description

Do we continue to support all those formats, or even more? (PNG)

I think we could avoid PNG. In case of OOjs UI we generate PNGs and colored options using a grunt task. Most projects can adopt a similar workflow.

When providing PNGs or any other raster format we'll also have to provide multiple sizes. Are there any known use cases where raster files are required?

It would be great if we are able to get design and production ready SVGs.
By production ready, I mean SVGs simplified and formatted so they render properly when for example converted to xml for Android.

Also potentially more expect all icons to be contained within a standard bound (eg., 48x48px) to minimise anti-aliasing and for a consistency in sizes of various icons.
This point relates also to T139351: Rules for Wikimedia icon additions .

I think SVG files should be our single source of truth, and generate the needed formats by exporting from them (automatically if possible).

As @RHo comments, design SVGs can be the source, and production SVGs derived from those.

Based on this comparison, I'm not sure we want to use a font-based version, but I'm ok if we export automatically to any format that can be useful to someone else.

Volker_E removed a project: Proposal.
Volker_E updated the task description. (Show Details)
Volker_E updated the task description. (Show Details)
Volker_E updated the task description. (Show Details)
Volker_E removed a subscriber: ggellerman.