Closed GoogleCodeExporter closed 9 years ago
This issue seems related to the JDK or Ubuntu (and not related to javamelody).
According to a short web search, it may be fixed by using the Sun/Oracle JDK
(and not OpenJDK) or by installing X window or by adding some files in some
font directory.
Basically, some fonts are needed for the graphics and the JDK does not find
them.
The JRobin classes include the following fonts (the first one seems to be the
one in your stack-trace):
/**
* Default font name, determined based on the current operating system
*/
String DEFAULT_FONT_NAME = System.getProperty("os.name").toLowerCase().contains("windows") ?
"Lucida Sans Typewriter" : "Monospaced";
/**
* Default graph small font
*/
String DEFAULT_MONOSPACE_FONT_FILE = "DejaVuSansMono.ttf";
/**
* Default graph large font
*/
String DEFAULT_PROPORTIONAL_FONT_FILE = "DejaVuSans-Bold.ttf";
Please tell your findings, Thanks.
Original comment by evernat@free.fr
on 30 Sep 2011 at 5:24
We did not have a copy of DejaVuSansMono.ttf or DejaVuSans-Bold.ttf on that
server. We verified that adding/removing those files affects whether the
graphs/pdfs work.
Also we setup a fonts.conf alias:
<match target="pattern">
<test qual="any" name="family">
<string>mono</string>
</test>
<edit name="family" mode="assign">
<string>monospace</string>
</edit>
</match>
Thanks for your help
Original comment by mart788@gmail.com
on 30 Sep 2011 at 6:30
ok, bye
Original comment by evernat@free.fr
on 30 Sep 2011 at 9:02
Original issue reported on code.google.com by
mart788@gmail.com
on 30 Sep 2011 at 4:50