Open stallio opened 6 years ago
Hi @stallio, can you make a pull request for that? And can you share a PDF output about how it looks like? Thanks.
Here's a screenshot of a PDF out of the box. All text is in Arial (default sans-serif font on Windows):
Here's the same PDF with the fonts fixed as I described above. The heading now correctly uses Times New Roman (a serif font):
PDF fonts are controlled by the following lines from docbook-config/fo-pdf.xsl:
The first issue here is that both templates contain all the same fonts, but the first template should contain only sans-serif fonts and the second should contain only serif fonts.
The second issue is that the fonts are listed in reverse order. They should be listed in order of preference with the absolute fallback (serif or sans-serif) last.
As a result, almost all text in the PDF is rendered in Arial or Helvetica (the fallback for sans-serif).
The templates should look more like this: