Search code examples
androidhtmliosunicode

How can I render the ♦ (Unicode Black Diamond Suit) the same on all devices?


I need to render the Black Diamond Suit (♦, U+2666) the same on multiple browsers. Unfortunately, this is an emoji as well, meaning it renders like this:

Source

when I want it to always render like the "browser" image (top left).

This is especially frustrating on iOS and Android because it's not rendered as black.

Unfortunately, Font Awesome doesn't include a usable replacement. The nearest is "Black lozenge", U+29EB ⧫︎ but it's a bit stretched.

Is there a way to force the mobile browser to render it like a desktop browser would?


Solution

  • Looking at the spec found on fileformat.info there is a text version of the black diamond that can be used instead:"\u{2666}\u{FE0E}"