Wingdings font family does not seem to work on Firefox and Opera

后端 未结 6 2070
执念已碎
执念已碎 2020-12-15 03:32

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

6条回答
  •  一向
    一向 (楼主)
    2020-12-15 04:09

    The Wingdings characters can be accessed in a Unicode-compliant manner, via the "Private Use Area" (codepoints U+E000 to U+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 subrange U+F021 to U+F0FF.

    For instance, the triangular flag, which is mapped to P = 0x50 in legacy encoding, can be accessed via U+F050 = =  (HTML) = \F050 (CSS).

    I'm not sure about other browsers, but it does work in Firefox 12.

提交回复
热议问题