Internal Error: no fallback glyph for character U+0050
The operating system is freebsd and after installation I receive this error:
prince: warning: no glyphs for character U+0050, fallback to '?'
prince: internal error: no fallback glyph for character U+0050
Is this a problem with the input data?
How do I find out where this character is?
Thanks, Evan
U+50 is the Latin letter "P". In this case it means you don't have any fonts installed on this machine. You need to install some fonts, or if you already have some installed
tell Prince about them.
Are these the fonts I should be using?
The font directory has:
-r--r--r-- 1 root wheel 5074 Aug 28 2010 armscii8-8x14.fnt
-r--r--r-- 1 root wheel 5782 Aug 28 2010 armscii8-8x16.fnt
-r--r--r-- 1 root wheel 2956 Aug 28 2010 armscii8-8x8.fnt
-r--r--r-- 1 root wheel 5070 Aug 28 2010 cp1251-8x14.fnt
-r--r--r-- 1 root wheel 5778 Aug 28 2010 cp1251-8x16.fnt
-r--r--r-- 1 root wheel 2952 Aug 28 2010 cp1251-8x8.fnt
-r--r--r-- 1 root wheel 4967 Aug 28 2010 cp437-8x14.fnt
-r--r--r-- 1 root wheel 5675 Aug 28 2010 cp437-8x16.fnt
-r--r--r-- 1 root wheel 2850 Aug 28 2010 cp437-8x8.fnt
-r--r--r-- 1 root wheel 5680 Aug 28 2010 cp437-thin-8x16.fnt
-r--r--r-- 1 root wheel 2855 Aug 28 2010 cp437-thin-8x8.fnt
-r--r--r-- 1 root wheel 4967 Aug 28 2010 cp850-8x14.fnt
-r--r--r-- 1 root wheel 5675 Aug 28 2010 cp850-8x16.fnt
-r--r--r-- 1 root wheel 2850 Aug 28 2010 cp850-8x8.fnt
-r--r--r-- 1 root wheel 5680 Aug 28 2010 cp850-thin-8x16.fnt
-r--r--r-- 1 root wheel 2855 Aug 28 2010 cp850-thin-8x8.fnt
-r--r--r-- 1 root wheel 4967 Aug 28 2010 cp865-8x14.fnt
-r--r--r-- 1 root wheel 5675 Aug 28 2010 cp865-8x16.fnt
-r--r--r-- 1 root wheel 2850 Aug 28 2010 cp865-8x8.fnt
-r--r--r-- 1 root wheel 5680 Aug 28 2010 cp865-thin-8x16.fnt
-r--r--r-- 1 root wheel 2855 Aug 28 2010 cp865-thin-8x8.fnt
-r--r--r-- 1 root wheel 4967 Aug 28 2010 cp866-8x14.fnt
-r--r--r-- 1 root wheel 5675 Aug 28 2010 cp866-8x16.fnt
-r--r--r-- 1 root wheel 2850 Aug 28 2010 cp866-8x8.fnt
-r--r--r-- 1 root wheel 5676 Aug 28 2010 cp866b-8x16.fnt
-r--r--r-- 1 root wheel 5676 Aug 28 2010 cp866c-8x16.fnt
-r--r--r-- 1 root wheel 5074 Aug 28 2010 cp866u-8x14.fnt
-r--r--r-- 1 root wheel 5782 Aug 28 2010 cp866u-8x16.fnt
-r--r--r-- 1 root wheel 2956 Aug 28 2010 cp866u-8x8.fnt
-r--r--r-- 1 root wheel 5068 Aug 28 2010 haik8-8x14.fnt
-r--r--r-- 1 root wheel 5776 Aug 28 2010 haik8-8x16.fnt
-r--r--r-- 1 root wheel 2950 Aug 28 2010 haik8-8x8.fnt
-r--r--r-- 1 root wheel 5064 Aug 28 2010 iso-8x14.fnt
-r--r--r-- 1 root wheel 5772 Aug 28 2010 iso-8x16.fnt
-r--r--r-- 1 root wheel 2946 Aug 28 2010 iso-8x8.fnt
-r--r--r-- 1 root wheel 5782 Aug 28 2010 iso-thin-8x16.fnt
-r--r--r-- 1 root wheel 5068 Aug 28 2010 iso02-8x14.fnt
-r--r--r-- 1 root wheel 5776 Aug 28 2010 iso02-8x16.fnt
-r--r--r-- 1 root wheel 2950 Aug 28 2010 iso02-8x8.fnt
-r--r--r-- 1 root wheel 5068 Aug 28 2010 iso04-8x14.fnt
-r--r--r-- 1 root wheel 5776 Aug 28 2010 iso04-8x16.fnt
-r--r--r-- 1 root wheel 2950 Aug 28 2010 iso04-8x8.fnt
-r--r--r-- 1 root wheel 5078 Aug 28 2010 iso04-vga9-8x14.fnt
-r--r--r-- 1 root wheel 5786 Aug 28 2010 iso04-vga9-8x16.fnt
-r--r--r-- 1 root wheel 2960 Aug 28 2010 iso04-vga9-8x8.fnt
-r--r--r-- 1 root wheel 5796 Aug 28 2010 iso04-vga9-wide-8x16.fnt
-r--r--r-- 1 root wheel 5786 Aug 28 2010 iso04-wide-8x16.fnt
-r--r--r-- 1 root wheel 5068 Aug 28 2010 iso05-8x14.fnt
-r--r--r-- 1 root wheel 5776 Aug 28 2010 iso05-8x16.fnt
-r--r--r-- 1 root wheel 2950 Aug 28 2010 iso05-8x8.fnt
-r--r--r-- 1 root wheel 5068 Aug 28 2010 iso07-8x14.fnt
-r--r--r-- 1 root wheel 5776 Aug 28 2010 iso07-8x16.fnt
-r--r--r-- 1 root wheel 2950 Aug 28 2010 iso07-8x8.fnt
-r--r--r-- 1 root wheel 5068 Aug 28 2010 iso08-8x14.fnt
-r--r--r-- 1 root wheel 5776 Aug 28 2010 iso08-8x16.fnt
-r--r--r-- 1 root wheel 2950 Aug 28 2010 iso08-8x8.fnt
-r--r--r-- 1 root wheel 5776 Aug 28 2010 iso09-8x16.fnt
-r--r--r-- 1 root wheel 5068 Aug 28 2010 iso15-8x14.fnt
-r--r--r-- 1 root wheel 5776 Aug 28 2010 iso15-8x16.fnt
-r--r--r-- 1 root wheel 2950 Aug 28 2010 iso15-8x8.fnt
-r--r--r-- 1 root wheel 5786 Aug 28 2010 iso15-thin-8x16.fnt
-r--r--r-- 1 root wheel 5070 Aug 28 2010 koi8-r-8x14.fnt
-r--r--r-- 1 root wheel 5778 Aug 28 2010 koi8-r-8x16.fnt
-r--r--r-- 1 root wheel 2952 Aug 28 2010 koi8-r-8x8.fnt
-r--r--r-- 1 root wheel 5780 Aug 28 2010 koi8-rb-8x16.fnt
-r--r--r-- 1 root wheel 5780 Aug 28 2010 koi8-rc-8x16.fnt
-r--r--r-- 1 root wheel 5070 Aug 28 2010 koi8-u-8x14.fnt
-r--r--r-- 1 root wheel 5778 Aug 28 2010 koi8-u-8x16.fnt
-r--r--r-- 1 root wheel 2952 Aug 28 2010 koi8-u-8x8.fnt
-r--r--r-- 1 root wheel 5786 Aug 28 2010 swiss-1131-8x16.fnt
-r--r--r-- 1 root wheel 5786 Aug 28 2010 swiss-1251-8x16.fnt
-r--r--r-- 1 root wheel 5675 Aug 28 2010 swiss-8x16.fnt
-r--r--r-- 1 root wheel 2850 Aug 28 2010 swiss-8x8.fnt
No, these are all bitmap fonts (for X-Windows?). You need some TrueType fonts, with a .ttf or .otf extension. For example, the Microsoft Core Fonts, or the DejaVu fonts, or Liberation fonts.
Thanks for taking the time to help. I just installed the following:
-rw-r--r-- 1 546 546 9345992 Jan 11 2005 cwfs.ttf
-rw-r--r-- 1 546 546 5493164 Jan 11 2005 cwheib.ttf
-rw-r--r-- 1 546 546 10664536 Jan 11 2005 cwkai.ttf
-rw-r--r-- 1 546 546 11929748 Jan 11 2005 cwming.ttf
-rw-r--r-- 1 546 546 142538 Jan 11 2005 cwttf-cjk-bl.pdf
-rw-r--r-- 1 546 546 150291 Jan 11 2005 cwttf-ooo-bl.pdf
-rw-r--r-- 1 546 546 7853544 Jan 11 2005 cwyen.ttf
the problem if that I am not sure which file to use and how. Would the following work?
@font-face {
font-family: sans-serif;
font-style: normal;
font-weight: normal;
src: url("/usr/ports/x11-fonts/urwfonts/cwyen.ttf")
}
Something like this will work, although it is best to define the default "serif" font that Prince will fall back to when other fonts cannot be found, and these font files appear to be primarily CJK (Chinese, basically). You can run "prince --scanfonts /usr/ports/x11-fonts/urwfonts/*.ttf" to get @font-face rules for them. Are there any other font packages for FreeBSD, like the DejaVu fonts, which are good for Latin text?
THANKS!!!
I installed the dejavu fonts, edited th efonts.css file and now I continue with looking into page numbering and such.
Thanks for the help.
Evan