Forum How do I...?

fonts error

chenxee
hi, i'm trying to run prince on Debian system, on command line:

prince -v --input=html test.html
Fontconfig warning: no <cachedir> elements found. Check configuration.
Fontconfig warning: adding <cachedir>/var/cache/fontconfig</cachedir>
Fontconfig warning: adding <cachedir>~/.fontconfig</cachedir>
prince: loading HTML input: test.html
prince: internal error: no available fonts

test.html is very simple:

<html>
<head>
<title>for prince test use</title>
</head>
<body>
test
</body>
</html>


besides, im also trying to call prince from ruby on rails application, the error "broken pipe" takes place when passing in html string to prince. maybe it has something to do with font issue too? because i can make prince working perfectly on windows.

any suggestions for workaround? thx in adv.
mikeday
Install the msttcorefonts package, or edit fonts.css to point to other installed fonts (eg. the DejaVu fonts).