Editing bold, italics, and underline in CSS

Post here questions and problems related to editing and publishing DITA content.
bella
Posts: 2
Joined: Tue Mar 25, 2025 2:57 pm

Editing bold, italics, and underline in CSS

Post 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?
julien_lacour
Posts: 665
Joined: Wed Oct 16, 2019 3:47 pm

Re: Editing bold, italics, and underline in CSS

Post 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
bella
Posts: 2
Joined: Tue Mar 25, 2025 2:57 pm

Re: Editing bold, italics, and underline in CSS

Post 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.
julien_lacour
Posts: 665
Joined: Wed Oct 16, 2019 3:47 pm

Re: Editing bold, italics, and underline in CSS

Post 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
Post Reply