Forum How do I...?

get rid of warning: no glyphs for character U+2610

tharkun
U+2610 is the character for an empty checkbox.
I read the older threads about this topic but can't solve the problem vith DejaVu.
I have DejaVu installed, it appears when I use
fc-list
.
I have DejaVu declared in myfonts.css like so:

/* DejaVu, Regular */
@font-face {
    font-family: "DejaVu";
    font-weight: normal;
    font-style: normal;
    font-stretch: normal;
    src: url("/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf")


And I added "DejaVu" to the font-family declaration of my pdf.css like so:
*, html, body, table, tr, td, p, ul, li {
    font-family: Verdana, "DejaVu";
    font-size: 9pt;
}


But still I only get ? in the generated Pdf.
mikeday
Is the DejaVu Sans font being embedded in the PDF file? You can check this by looking at the document properties in Acrobat, or run Prince with the --verbose flag to list which fonts are being used.
tharkun
Hi Mike
Seems it's not being embedded. Is it a typo somewhere or is there another step to take?
mikeday
Perhaps a different font-family is being specified elsewhere? What if you make a really simple document, like this:
<html>
<head>
<style>
@font-face { ... rule for DejaVu Sans here ... }
</style>
</head>
<body>
<p style="font-family: DejaVu Sans">
Does this use the right font? &#x2610;
</p>
</body>
</html>
tharkun
I went through everything again and found a missing } in myfonts.css and also set all font definitions to "DejaVu Sans" instead of just "DejaVu"...

... it works now but it's a typical case of confunded possible causes.

Thanks for your helpful inputs to narrow the possible causes down.