Unicode character on Android not displaying

后端 未结 5 1839
借酒劲吻你
借酒劲吻你 2020-12-15 06:00

I\'m developing a website using responsive design. I am trying to display the unicode character ☰ (the ☰ symbol), and it\'s not showing up on Android. Is ther

5条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-15 06:11

    The character denoted by does not appear in Android fonts, and its font coverage is relatively limited in other environments, too.

    The basic options are using a downloadable font (web font) via @font-face and to use an image, suitably scaled to text size.

    If this is the only “special” character you need, the image approach might be suitable: it is easy, and the shape of the character is so simple that it can be expected to scale well.

    Using a downloadable font may produce better results especially if the character is used inline inside text. But you would probably need a font like Quivira or Symbola, which are large (> 1 Mbyte) free fonts, and this would seem to imply a disproportionate overhead if it’s just for one character.

    For more info see my Guide to using special characters in HTML.

提交回复
热议问题