WordPress / dashicons

Dashicons, the WordPress admin icon font. For the official resource, please see the WordPress Developer Hub.
https://developer.wordpress.org/resource/dashicons/
GNU General Public License v3.0
564 stars 185 forks source link

Font-face rule declaration improvement ideas #361

Closed superpoincare closed 1 year ago

superpoincare commented 5 years ago

This discussion arose in https://core.trac.wordpress.org/ticket/47183 and while that ticket was about getting rid of an error message, I raised some points which are better discussed here.

references to eot and ttf can be removed altogether. There are some tickets where authors are trying to remove references to IE such as IE specific css files etc, which helps in ease in maintenance.

Zach Leat has argued here why css @font-face declarations need only have references to woff2 and woff files:

https://calendar.perfplanet.com/2016/no-font-face-bulletproof-syntax/

Also, he has argued that it's better to have references to woff2 and woff files rather than using data-uri in css as base64 encodes:

https://www.zachleat.com/web/web-font-data-uris/

So I suggest making woff2 and woff files for dashicons and declaring references to them in the css files.

desrosj commented 1 year ago

Closing as this repo will be placed into archive state. See https://make.wordpress.org/core/2020/07/15/dashicons-in-wordpress-5-5-the-final-update/ for more information.