Page 1 of 1

Changed rendering of lists in PDF

Posted: Wed Sep 24, 2025 12:33 pm
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

Re: Changed rendering of lists in PDF

Posted: Thu Sep 25, 2025 9:42 am
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