[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] Opentype fonts
Lillian
I use FOP 0.95 but this worked in 0.94 also. You need to process a font metric file (as per FOPs instructions in http://xmlgraphics.apache.org/fop/0.94/fonts.html) and then set up the fop config file so FOP knows about the fonts. I use DejaVu fonts (dejavu.sf.net) and it works fine. Here is the section of the fop config file that I used. I hope this helps. If you need more I can provide scripts and batch files for this process.
Regards,
Dean Nelson
<fonts> <!-- register a particular font --> <!-- SANS Font --> <font metrics-url="../fonts/DejaVuSans.xml" kerning="yes" embed-url="../../doctools/dejavu-fonts-ttf-2.24/ttf/DejaVuSans.ttf"> <font-triplet name="DejaVuSans" style="normal" weight="normal"/> </font> <font metrics-url="../fonts/DejaVuSans-Bold.xml" kerning="yes" embed-url="../../doctools/dejavu-fonts-ttf-2.24/ttf/DejaVuSans-Bold.ttf"> <font-triplet name="DejaVuSans" style="normal" weight="bold"/> </font> <font metrics-url="../fonts/DejaVuSans-BoldOblique.xml" kerning="yes" embed-url="../../doctools/dejavu-fonts-ttf-2.24/ttf/DejaVuSans-BoldOblique.ttf"> <font-triplet name="DejaVuSans" style="italic" weight="bold"/> </font> <font metrics-url="../fonts/DejaVuSans-Oblique.xml" kerning="yes" embed-url="../../doctools/dejavu-fonts-ttf-2.24/ttf/DejaVuSans-Oblique.ttf"> <font-triplet name="DejaVuSans" style="italic" weight="normal"/> </font> <font metrics-url="../fonts/DejaVuSans-ExtraLight.xml" kerning="yes" embed-url="../../doctools/dejavu-fonts-ttf-2.24/ttf/DejaVuSans-ExtraLight.ttf"> <font-triplet name="DejaVuSans" style="normal" weight="200"/> </font> <!-- MONO Spaced Font --> <font metrics-url="../fonts/DejaVuSansMono.xml" kerning="yes" embed-url="../../doctools/dejavu-fonts-ttf-2.24/ttf/DejaVuSansMono.ttf"> <font-triplet name="DejaVuSansMono" style="normal" weight="normal"/> </font> <font metrics-url="../fonts/DejaVuSansMono-Bold.xml" kerning="yes" embed-url="../../doctools/dejavu-fonts-ttf-2.24/ttf/DejaVuSansMono-Bold.ttf"> <font-triplet name="DejaVuSansMono" style="normal" weight="bold"/> </font> <!-- SERIF Font --> <font metrics-url="../fonts/DejaVuSerif.xml" kerning="yes" embed-url="../../doctools/dejavu-fonts-ttf-2.24/ttf/DejaVuSerif.ttf"> <font-triplet name="DejaVuSerif" style="normal" weight="normal"/> </font> <font metrics-url="../fonts/DejaVuSerif-Bold.xml" kerning="yes" embed-url="../../doctools/dejavu-fonts-ttf-2.24/ttf/DejaVuSerif-Bold.ttf"> <font-triplet name="DejaVuSerif" style="normal" weight="bold"/> </font> <font metrics-url="../fonts/DejaVuSerif-BoldItalic.xml" kerning="yes" embed-url="../../doctools/dejavu-fonts-ttf-2.24/ttf/DejaVuSerif-BoldItalic.ttf"> <font-triplet name="DejaVuSerif" style="italic" weight="bold"/> </font> <font metrics-url="../fonts/DejaVuSerif-Italic.xml" kerning="yes" embed-url="../../doctools/dejavu-fonts-ttf-2.24/ttf/DejaVuSerif-Italic.ttf"> <font-triplet name="DejaVuSerif" style="italic" weight="normal"/> </font> </fonts> In a message dated 09/16/08 08:41:44 Pacific Daylight Time, lsullam@bruxton.com writes:
|
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]