I'm using unicode to display chess pieces ♟ in HTML for a chess app, i.e ♟ = ♟
<head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="stylesheet" href="styles/style.css"> </head> <body> <p class="pawn">♟</p> </body> However they are not displaying the same on certain devices and I'm not sure how to fix it. Here's what it looks like vs what it should look like:
vs 
The wikipedia suggests this is based on the font being used, but I haven't had any success with changing it in CSS
@font-face { font-family: "Dejavu Sans"; src: local("Dejavu Sans"); unicode-range: U+26; } .pawn { font-family: "Dejavu Sans"; } The whole @font-face/unicode-range bit is because the only other answers I can find say that I need to use it, but I'm not sure how.
In summary: I need to make my website display unicodes in a specifc font consistent across all devices on modern browsers.
localyou should useurland a URL with the webfonts. You may want to look for Google Fonts or other providers (and hosting) of webfonts