24.08.2015 Views

Oxygen XML Author plugin 13.2.0

Oxygen XML Author plugin 13.2.0

Oxygen XML Author plugin 13.2.0

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Transforming Documents | 306The embed-url attribute points to the font file to be embedded. You have to specify it using the URL convention.The metrics-url attribute points to the font metrics file with a path relative to the base element. The tripletrefers to the unique combination of name, weight, and style (italic) for each variation of the font. In our case isjust one triplet, but if the font had variants, you would have to specify one for each variant. Here is an examplefor Arial Unicode if it had italic and bold variants:......More details about the FOP configuration file are available onhttp://xmlgraphics.apache.org/fop/0.93/configuration.htmlthe FOP website.b) Set the FOP configuration file in Preferences.Go to menu Options > Preferences > <strong>XML</strong> > XSLT/FO/XQuery > FO Processors and enter the path of theFOP configuration file in the Configuration file for the built-in FOP text field.4. Set the font on the document content.This is done usually with XSLT stylesheet parameters and depends on the document type processed by the stylesheet.For DocBook documents you can start with the predefined scenario called DocBook PDF, edit the XSLT parametersand set the font name (in our example Arialuni) to the parameters body.font.family and title.font.family.For TEI documents you can start with the predefined scenario called TEI PDF, edit the XSLT parameters and setthe font name (in our example Arialuni) to the parameters bodyFont and sansFont.For DITA transformations using DITA-OT you should use an IDIOM FOP transformation and modify the followingtwo files:• ${frameworks}/dita/DITA-OT/demo/fo/cfg/fo/font-mappings.xml - the font-faceelement included in each element physical-font having the attribute char-set="default" mustcontain the name of the font (Arialuni in our example)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!