From: Charles B. <cbo...@hi...> - 2003-03-04 03:28:30
|
On Mon, 2003-03-03 at 11:05, Tony Graham wrote: > > It appears that fontconfig and PDFlib aren't agreeing on what > constitutes a font. > > > The command I was trying to run is: > > ./xmlroff xmlroff.fo > > That should work. > > > I also tried changed the font-family to other values but I still get the > > same error. > > Did you try reducing xmlroff.fo so there's only one fo:block and > experimenting with the font-family, font-weight, and font-style > properties. While you're using an FO file with multiple font-family, > etc., it's hard to tell which one is causing a problem. > > > I am just going to have to run gdb to try and find the problem. > > Break on PDF_findfont() to see what font names are being passed to > PDFlib. > > > Let me know if you have any ideas. > > What does the 'fc-list' command show? 'fc-list' lists all the fonts > that the fontconfig library knows about, although I don't find its > output tells you all that much. > > 'xmlroff -d2 xmlroff.fo' or 'xmlroff -d8 xmlroff.fo' will give you a > lot of information, but will still only show the font-family names > used in the xmlroff.fo file. > Thanks for the hints. I found my problem is that some of my font files (type1 pfa files) use '\r' instead of '\n' to end lines which caused PDFlib to read (via fgets) too much data and process the font data wrong. I've finally gotten the test file to work so maybe now I can be somewhat productive. I just wish I had more time to spend on this project, because I believe it is really important for xml processing to progress. -- Charles Bozeman <cbo...@hi...> |