stephenhutchings / typicons.font

336 pixel perfect, all-purpose vector icons in a web-font kit
https://www.s-ings.com/typicons
Other
1.42k stars 221 forks source link

[question] Comment after every `content: '\e14f';` #7

Closed marczking closed 3 years ago

marczking commented 10 years ago

So after every

content: '\e14f'; /* '' */

you got /* '' */. If I want to remove those comments I need to remove one by one, as every seems to be a different symbol (remove all with replace is not possible because of this).

I am just wondering what this is for? Do some editors show the actual symbol in the CSS-file? Why keep those comment?

stephenhutchings commented 10 years ago

Some icon fonts use characters in the normal range (a, b, c etc.) but Typicons uses characters outside the normal range so screen readers won't read them. So \e14f is the encoding, but is the actual glyph. These are not immediately useful, but I've kept them in just in case. You could essentially use content: ''; if you wanted. My feeling is that they might provide some value, so I think it makes sense to leave them in.

If you want to remove them, just use a regular expression to find them all. Something like \/\* '.' \*\/ should do the trick.