[Dot] couldn't load font "Trlit_CG Times Not-Rotated 14"
Ported Issue from Mantis Original ID: 2525 Reported By: rmarik
SEVERITY: TWEAK Submitted: 2015-03-09 00:38:50
OS: WINDOWS
OS BUILD: 7
PLATFORM: PC
DESCRIPTION
If a font description does not match style, it is not found. It works for 2.26.3, but that version does not support <B>something</B>
HTML-style.
Versions 2.28.0, 2.30.1, and 2.38 report
(dot.exe:6008): Pango-WARNING **: couldn't load font "Trlit_CG Times Not-Rotated 14", falling back to "Sans Not-Rotated 14", expect ugly output.
This can be solved if the font specification matches the actual font including its style. I was really confused by the error message, the working version 2.26.3, and not working others.
STEPS TO REPRODUCE
An example generating the error:
digraph MyGraph {
"off_241" [label=<
<FONT FACE="Trlit_CG Times">2nty-kAw-1r</FONT><BR/>id:<B>10</B>
>];
}
A modification getting through without any error report:
digraph MyGraph {
"off_241" [label=<
<FONT FACE="Trlit_CG Times Italic">2nty-kAw-1r</FONT><BR/>id:<B>10</B>
>];
}
ADDITIONAL INFORMATION
The installed font and their styles can be found using fc-list. The font is used by egyptologists.
Edited by Matthew Fernandez