Font issues in Mac vs. Linux installations of Oxygen

Having trouble installing Oxygen? Got a bug to report? Post it all here.
Carl
Posts: 102
Joined: Fri Oct 19, 2018 2:19 am

Font issues in Mac vs. Linux installations of Oxygen

Post by Carl »

I have OxygenXML installed on both a Linux desktop and Macbook Pro. The Linux box is correctly configured to produce PDFs like how we want it. However it's been more of a chore to get the Mac to produce correct PDFs.

I've reached a point where the Mac almost produces the same output. But there is a residual nagging font issue that I can't figure out. Please see my attached screenshots below.

The first image shows the output from my Linux box. All fonts are correct.
The second image shows the output from my Macbook. Only the top-level topic font is correct. The others show a Serif font that's not correct.
The third image shows how the hierarchy looks like in the DITA Maps Manager.

I put all customizations into a "Customizations" folder that I created. I copied the Customizations folder from my Linux box to my Mac. I have checked all the files within Customizations, but cannot see where the font discrepancy comes from. I've checked my "font-mappings.xml" file, as well as others. Perhaps I'm looking in the wrong place?

  • PDF - how it's supposed to look like.png
    PDF - how it's supposed to look like.png (234.75 KiB) Viewed 733 times
  • PDF - incorrect fonts from Mac.png
    PDF - incorrect fonts from Mac.png (198.23 KiB) Viewed 733 times
  • PDF - how it looks like in DITA Manager.png
    PDF - how it looks like in DITA Manager.png (35.17 KiB) Viewed 733 times
julien_lacour
Posts: 257
Joined: Wed Oct 16, 2019 3:47 pm

Re: Font issues in Mac vs. Linux installations of Oxygen

Post by julien_lacour »

Hello,

You can debug the .merged.html file generated during the transformation and see for the incorrect fonts which one is used (using the browser inspector).

Normally the Chemistry processor uses some fallback fonts in case a font is missing in the platform (and when the font-family is set on serif, sans-serif or monospace) but if the display is still not compliant you can add a custom css file (args.css in the transformation) to specify different fonts (using font-family).

Regards,
Julien
Carl
Posts: 102
Joined: Fri Oct 19, 2018 2:19 am

Re: Font issues in Mac vs. Linux installations of Oxygen

Post by Carl »

Thank you for the tips, Julien. I will try those when I get a chance.

I can rule out a missing font, because the correct font is used elsewhere as shown in my example.
Post Reply