OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[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:
Is there an open source FO processor that can handle opentype fonts?  I've tried changing fonts with FOP (which I use now), but I can't get it to work, even with truetype fonts.  I'm currently using Saxon65, XSLT 1.0 and FOP 0.94.  I have also noticed that FOP doesn't support double sided printing.  Is this true?  Or is there a parameter that needs to be set for this to work?

Thanks!

Lillian Sullam
 


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]