Font and color

Post here questions and problems related to editing and publishing DITA content.
Le Basque
Posts: 147
Joined: Sat Oct 19, 2013 8:21 am

Font and color

Post by Le Basque »

Hi,
To change the font and font color should it go through the CSS file or directly in the stylesheet?
How to make this generic font choice?
thank you
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: Font and color

Post by sorin_ristache »

Hi,

Where do you want to change the font and color? For changing them in Author editing mode you have to extend or customize the CSS stylesheet that Oxygen uses for Author mode:

[Oxygen-install-dir]/frameworks/dita/css_classed/dita.css

If you want to change the font and color of some elements in the output of a DITA transformation you will have to edit an XSLT stylesheet. For example for the PDF output the font and color properties are set by the XSLT stylesheets from directory:

[Oxygen-install-dir]/frameworks/dita/DITA-OT/plugins/org.dita.pdf2/cfg/fo/attrs


Regards,
Sorin
Post Reply