0

I've just noticed that there is U+1F49C - PURPLE HEART.

I always thought that Unicode would abstract from color, hence I wonder why this symbol exists in the first place.

The next thing I wondered is how

<span style="color: red;">I &#128156; Unicode</span>    &#128156;

is supposed to look like. Should the heart be red or purple?

Chrome 61 (on Linux) makes the purple heart red. Hence it is black in normal text. But then I would expect the BLUE HEART to look identical, which it isn't (see jsfiddle).

What is the reason for this?

Martin Thoma
  • 124,992
  • 159
  • 614
  • 958
  • In my Chrome 61, purple heart is purple, and blue heart is blue. Nothing is red except the text. Unicode does abstract from color, except in some cases. If it was colorless, the symbol would be named 'heart' not 'blue heart'. – GolezTrol Oct 23 '17 at 20:11
  • In order to back you claim about problematic color, could you supply the image? Also add the operating system etc. – miroxlav Oct 23 '17 at 20:12
  • It all has to do with what fonts are installed. If you have a color-aware font that contains the symbol, it will always be purple. Otherwise, it will be default black, -> red. – o11c Oct 23 '17 at 20:12
  • @o11c – Installed where? – miroxlav Oct 23 '17 at 20:14
  • 3
    Possible duplicate of [Color in the Unicode standard?](https://stackoverflow.com/questions/9626115/color-in-the-unicode-standard) – GolezTrol Oct 23 '17 at 20:14
  • @o11c There are color-aware fonts? – Martin Thoma Oct 23 '17 at 20:18
  • @MartinThoma yes, see the answer by Icosie on the duplicate – o11c Oct 24 '17 at 01:22
  • Interesting. On chrome 61 for Android the purple heart is purple and the blue heart is blue. – Martin Thoma Oct 24 '17 at 05:45

0 Answers0