Page 1 of 1

Font issues in Mac vs. Linux installations of Oxygen

Posted: Wed Jun 10, 2020 3:34 am
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 1169 times
  • PDF - incorrect fonts from Mac.png
    PDF - incorrect fonts from Mac.png (198.23 KiB) Viewed 1169 times
  • PDF - how it looks like in DITA Manager.png
    PDF - how it looks like in DITA Manager.png (35.17 KiB) Viewed 1169 times

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

Posted: Wed Jun 10, 2020 10:46 am
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

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

Posted: Wed Jun 10, 2020 9:08 pm
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.