Changed rendering of lists in PDF

Post here questions and problems related to editing and publishing DITA content.
clara
Posts: 8
Joined: Tue Jan 07, 2025 12:51 pm

Changed rendering of lists in PDF

Post by clara »

Hi,

we've encountered a publishing issue in Oxygen 27.1 when creating PDFs (it's all fine in WebHelp). In numbered lists, the number suddenly uses the default font instead of our branding font. I assume that this change came with Oxygen 27.1 and the new DITA OT. I don't have Oyxgen 27.0 anymore but could compare with Oxygen 26.1.

I've compared the different file versions in the PDF output folder:
  • In the PDF, the list item number font has changed from 26.1 to 27.1.
  • In the merged HTML, the content has'nt changed.
  • In the FO file, there is the change visible in the source:
    • In the Oxygen 26.1 output, the list item number uses just a block:

      Code: Select all

      <fo:block text-align="end">4. </fo:block>
    • Where in the Oxygen 27.1 output, the list item number got additional formatting:

      Code: Select all

      <fo:block text-align="end" font-family="Times New Roman,Liberation Serif,DejaVu Serif,Symbol,Segoe UI Symbol,FreeSerif,ZapfDingbats">4. </fo:block>
How can I address this list item numbers in CSS to assign the correct font?
Thanks in advance!
Clara
julien_lacour
Posts: 712
Joined: Wed Oct 16, 2019 3:47 pm

Re: Changed rendering of lists in PDF

Post by julien_lacour »

Hello Clara,

You have the possibility to override the fonts used by list-items markers using a CSS rule similar to this one:

Code: Select all

*[class ~= "topic/ul"] > *[class ~= "topic/li"]::marker {
  font-family: "Segoe UI", sans-serif;
}
Regards,
Julien
Post Reply