Forum How do I...?

Insert UTF-8 glyphs/wingdings/etc?

ikaruga
I'm getting a
warning: no glyphs for character U+25B3, fallback to '?'
error.

I followed the font troubleshooting guide in the docs. Yes, msttcorefonts is installed. Yes, I also tried changing the font using "font-family" and @font-face. And yes, the glyphs ARE defined in the font that I'm using. However, all other characters except those glyphs work in the PDF.

Here is the offending code:

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
               "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
lang="en" xml:lang="en">
<body>
✓◀ ▶
</body>
</html>


Perhaps the DOCTYPE declaration is incorrect? If so, what would be the correct declaration?
mikeday
The DOCTYPE is fine. Which font are you using, and how are you sure that it has a glyph for U+25B3 WHITE UP-POINTING TRIANGLE?
ikaruga
I'm using microsoft's office 2007 fonts: Calibri.

That's a pretty decent font---it should have all the relavant glyphs installed.

The glyphs display fine in the text editor that I'm using (set to use Calibri). Firefox also displays the font properly. These are all on Linux and the editor that I'm using is Emacs

HOWEVER, I just tried to open the file in Windows---in Emacs using the same font. The glyph doesn't display properly!

I'm guessing now that perhaps the actual HTML file isn't encoded properly? It's encoded as "utf-8-unix"...
ikaruga
You're right---it appears that the font doesn't have that glyph.

What's wierd is that Emacs, Kate, and Firefox all display the glyphs correctly even when I set the font to Calibri. Perhaps in Linux, the default is to fallback to another font....

The problem went away when I use the Dejavu fonts.