docbook-apps

  • 1.  Opentype fonts

    Posted 09-16-2008 15:41
    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



  • 2.  RE: [docbook-apps] Opentype fonts

    Posted 09-16-2008 18:59
    Lillian,

    I can't answer your question about OpenType fonts and FOP,
    but I can answer the second one.

    The DocBook stylesheets have a parameter called double.sided
    that will give you double sided output. Here is a pointer
    to the section in Bob Stayton's book that discusses this:

    http://www.sagehill.net/docbookxsl/PrintOutput.html#DoubleSided

    Regards,
    Dick Hamilton
    http://rlhamilton.net




  • 3.  Re: [docbook-apps] Opentype fonts

    Posted 09-17-2008 09:29
    Hi,

    Lillian Sullam wrote:
    > 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 believe FOP supports OpenType fonts whose glyphs are described in the
    TrueType format, but you won’t have access to the OpenType special
    features like advanced ligatures or glyph selection. TrueType fonts are
    definitely supported, so you probably have something wrong with your
    configuration file. Have a look at the following page:
    http://xmlgraphics.apache.org/fop/0.94/fonts.html
    If that doesn’t help I suggest you to ask your question and provide
    details to the fop-users mailing list:
    http://xmlgraphics.apache.org/fop/maillist.html#fop-user


    > 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

    HTH,
    Vincent



  • 4.  Re: [docbook-apps] Opentype fonts

    Posted 09-17-2008 14:18
    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>


























    </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



  • 5.  Re: [docbook-apps] Opentype fonts

    Posted 09-18-2008 09:54
    Note that starting from FOP 0.95 (and unofficially from FOP 0.94) this
    is no longer required to generate XML metrics files for fonts. You can
    rely on the font discovery mechanism described in the section “Basic
    font configuration” at the following link:
    http://xmlgraphics.apache.org/fop/0.95/fonts.html#basics
    and that should be just it.

    HTH,
    Vincent


    DeanNelson wrote:
    > 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>
    >
    >
    >
    >

    >
    >

    >
    >

    >
    >

    >
    >

    >
    >
    >

    >
    >

    >
    >
    >

    >
    >

    >
    >

    >
    >

    > </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
    >