I was using the Wingdings font in the CSS for some symbols like a pencil and a home icon.
It worked on IE, Chrome and Safari but not in Firefox and Opera. I googled it but did not find any better solution.
Why doesn't it work in Firefox? I do need to use those icons, is there any way to use Wingdings in Firefox?
The Wingdings characters can be accessed in a Unicode-compliant manner, via the "Private Use Area" (codepoints
U+E000
toU+F7FF
). These character codes are reserved for any font-specific symbols not part of the regular Unicode character set, and indeed Wingdingds maps all of its symbols to the subrangeU+F021
toU+F0FF
.For instance, the triangular flag, which is mapped to
P
=0x50
in legacy encoding, can be accessed viaU+F050
=
=
(HTML) =\F050
(CSS).I'm not sure about other browsers, but it does work in Firefox 12.
To quote a website:
http://hutchinson.belmont.ma.us/tth/Wfonts.html
more here http://nicewebtype.com/notes/2009/10/30/how-to-use-css-font-face/
simple solution in your HTML
You can use Gimp or other graphic-software and make some GIFs of the needed icons from the Wingdings font.
You could use unicode characters such as
✎
http://www.fileformat.info/info/unicode/char/270e/index.htm
Mozilla and Opera are standard-compiliant. Wingdings is not standard (what a surprise coming from Microsoft) because not mapped to Unicode, and so should never be used on a website.
However, do not despair, most symbols are available in Unicode : check http://www.alanwood.net/demos/wingdings.html
Important addendum (october 2014) : As of Unicode v7, released on June 16, 2014, all characters from Webdings and Wingdings have been added to Unicode. See the comment below.