Page 1 of 1

Editing bold, italics, and underline in CSS

Posted: Tue Mar 25, 2025 3:02 pm
by bella
I'm new to Oxygen and am trying to learn to change the pdf outcome through the css file. I've learnt how to change tags, but when I try to change for example <i> nothing happens. Is this a locked feature or how do you change the look of these built in functions?

Re: Editing bold, italics, and underline in CSS

Posted: Tue Mar 25, 2025 4:04 pm
by julien_lacour
Hello,

Normally the DITA <i>, <b> and <u> elements should be correctly displayed in the PDF output.
What can happens though is the font you are using may not have variants for italic or bold, in this case the text will be rendered as regular.

Regards,
Julien

Re: Editing bold, italics, and underline in CSS

Posted: Wed Mar 26, 2025 4:35 pm
by bella
The problem is that the size of them are smaller than the rest of the text. I would like to fix this without changing the font, because we use that font because it is the only one that correctly displays all the symbols we need.

Re: Editing bold, italics, and underline in CSS

Posted: Wed Mar 26, 2025 5:13 pm
by julien_lacour
Hello,

Is it possible for you to send the DITA file(s) and the publishing template you are using (or at least the CSS stylesheet(s))? You can send them directly at support@oxygenxml.com.
Could you also indicate which version of Oxygen you are using and confirm you are using a scenario based on DITA Map PDF - based on HTML5 & CSS.

Regards,
Julien