From: Tony G. <Ton...@Su...> - 2003-03-13 17:52:23
|
Noah Levitt wrote at 12 Mar 2003 15:32:42 -0500: > 1. Does xmlroff/pangopdf do justification, using text-align? > I'm attaching a .fo that doesn't justify for me. No. There is a guy on the gtk...@gn... list who has said that he's working on justifying lines in Pango, though. > 2. How do I avoid embedding fonts in my pdf? xmlroff embeds fonts in the PDF as part of a desire to generate PDF/X-compatible PDF. Right now, change the last argument of the PDF_findfont() calls in pangopdflib.c to 0 then recompile PangoPDF. Controlling embedding is an interesting issue, since sometimes you can specify a generic font-family in your FO (e.g., font-family="sans"), so the FO file doesn't always say what fonts are used. The problem is compounded for xmlroff because xmlroff uses Pango which uses fontconfig, and fontconfig doesn't have an 'embed' flag of any kind (hardly surprising given that it's descended from xft). In the general case, you might want to embed only some of the fonts, e.g. the exotic fonts that are unlikely be on someone else's system. I could add an embed/no-embed flag to the PDF backend of PangoPDF fairly easily, but per-font embedding control would require an enhancement to fontconfig. Regards, Tony Graham ------------------------------------------------------------------------ XML Technology Center - Dublin Sun Microsystems Ireland Ltd Phone: +353 1 8199708 Hamilton House, East Point Business Park, Dublin 3 x(70)19708 |