[wp-trac] [WordPress Trac] #26333: svg-painter.js and friends
WordPress Trac
noreply at wordpress.org
Tue Dec 3 05:49:40 UTC 2013
#26333: svg-painter.js and friends
----------------------------+--------------------
Reporter: azaozz | Owner:
Type: defect (bug) | Status: new
Priority: high | Milestone: 3.8
Component: Administration | Version: trunk
Severity: normal | Resolution:
Keywords: |
----------------------------+--------------------
Comment (by azaozz):
To summarize:
1. The best way to add a top level icon is to use one of the icons from
Dashicons.
2. Second best is to get/create an icon font and use it the same way as
core.
3. Third would be to create a 2 tone (black and white?) svg image,
optimize it, base64 encode it, and add it in the css as described at
https://github.com/tillkruess/MP6-Icon-Examples/blob/master/mp6-svg-
icon.php. This method will also need a fallback for IE < 9, either a PNG
or Dashicon.
4. Not recommended: PNG image sprite (needs 4 or 6 icons, base,
(highlighted?), selected plus 2x sizes).
The various web based services for creating icon fonts have improved
during the last 6 months or so, and will continue to improve. Would it be
necessary to add option 3 and support it for years, or would it be better
to require a custom icon font (which may be harder to make but once done
will be futureproof)?
--
Ticket URL: <http://core.trac.wordpress.org/ticket/26333#comment:7>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list