Thanks Hussain, that's working now. Next question... Is it possible to put an image in the header or footer?
Cheers Mike -----Original Message----- From: Hussein Shafie [mailto:huss...@xmlmind.com] Sent: 06 January 2014 17:52 To: Mike Dodds Cc: 'xmleditor-support@xmlmind.com' Subject: Using the Calibri font in the PDF conversion (WAS: Custom title page with XSL-FO) Mike Dodds wrote: > I'm struggling with customizing the body and title font-families for PDF > conversion. > > I have added the font Calibri to Options>Preferences>Add-on>FOP list of fonts > to include and restarted XMLMind. When I tried to Add... the font the list of > true type fonts was empty(?), so I typed in c:\windows\fonts\calibri.ttf and > selected san-serif (Windows 7). > > In Options>Customise Configuration>Customize Document Conversion Stylesheets > for Convert to PDF, Postscript I have a Custom XSLT style sheet and in the > Parameters have specified body-font-family: calibri and the same for > title-font-family. > > The pdf does not show calibri and I get the default serif and san-serif > fonts. I did try changing the body-font-family from serif to san-serif and > that worked. What am I doing wrong? Nothing wrong. Simply, Options>Preferences>Add-on>FO does not work very well. --> First problem: the dialog box show an empty "C:\windows\fonts\" folder. You have found the workaround: type "C:\windows\fonts\calibri.ttf". See attached screenshots: calibri.png, calibrib.png, calibrii.png, calibriz.png --> Second problem: FOP does not seem to understand that "C:\windows\fonts\calibri.ttf" contains a font called "Calibri"! Here too, you have found the workaround: specify that "Calibri" is your sans-serif font and use XSL stylesheet parameter body-font-family=sans-serif (or body-font-family=Calibri,sans-serif) because: body-font-family=Calibri alone will not work. See attached screenshot: body_font_family.png We'll, of course, try to fix all these problems in the next release of XMLmind XML Editor. ++++ Message Scanning REF:351-AVS5-1389030726 ++++ -- XMLmind XML Editor Support List xmleditor-support@xmlmind.com http://www.xmlmind.com/mailman/listinfo/xmleditor-support