font problem
Hello,
I have a problem of interpretation of certain characters in my pdf.
On my html file I have this code:
<span style="color: #40a040"> ☑ </ span>
The webpage is correct but the pdf transforms these characters on ?
I've searched on the forum without success,
thanks for your answers
nohemi
- capture_html.PNG 11.3 kB
- capture_printpdf.PNG 19.7 kB
Prince cannot find glyphs for these characters in the selected font(s). Do you know which font they appear in?
Hello mikeday,
In this website I use standard fonts,
for example, I tested with Georgia, Arial and Verdana, and I've always the same problem (on several browsers (mozilla, safari, chrome...) display is perfect.
Which operating system are you running? For me it works on Linux, as the OpenSymbol font has this character. But on Windows XP it does not work, either in Prince or Internet Explorer.
I'm on Windows 7 and my colleague use a mac and it didn't work
Do you need the link to the web page?
That would indicate that there is a new font included in Windows 7, but not in XP, that has a glyph for this character. But which font? Perhaps one of the new fonts like Cambria, or Calibri? Does Windows 7 have a new symbol font as well?
But the pdf should take the font defined in the css? (Georgia)
And I have the problem in windows and mac platform...
The Georgia font does not have a glyph for this character, unless they've added new glyphs in Windows 7. The way font-family works in CSS is that browsers (and Prince) will try each font in turn until they can find a glyph. The last font they will try is the default "serif" font family, which for Prince maps to Times New Roman and a few other fonts.
Hello Mike,
I work with Nohemi and the font used to generate these glyphs is Dingbat. The CSS code for these glyphs is :
<span style="text-decoration: line-through; font-family: Dingbat; font-size: large">
<span style="color: #40a040">☑</span>,
<span style="color: #ff9400">⚠</span>,
<span style="color: #f81314">☒</span>
</span>
Is the font supposed to be installed on every single client ? (I don't know why I thought it was collected from the PDF document). If so, why can we see it from the screen but not from the PDF generated ? Might be because the font is not supported ? Or because of the entities ("☑" ...) ?
Thanks !
The font does not need to be installed on machines that you use to view the PDF, it only needs to be installed on the machine that you use to generate the PDF. Is the Dingbat font a standard font that comes with Windows 7?