openSUSE / suse-xsl

DocBook XSL Stylesheets for SUSE branding
Other
11 stars 10 forks source link

PDF: Poppins font from graphics not picked up #489

Open taroth21 opened 2 years ago

taroth21 commented 2 years ago

Problem Description

Looking at https://documentation.suse.com/sle-ha/15-SP4/pdf/article-pacemaker-remote_color_en.pdf (pages 2-4), the font used in the images contains serifs and 'sticks out' a bit, whereas in the HTML build, it's a sans serif font and blends in nicely with the rest. Is this difference between PDF and HTML expected?

Copied from a discussion with Toms:

I looked into the SVG graphics. The text has this XML fragment: <text style="...font-family:Poppins;...">Bob</text> It seems, the Google Poppins font isn't picked up in FO/PDF. For HTML, maybe CSS influence the outcome.

Expected Behaviour

Google Poppins font from graphics should show up in FO/PDF as well.

tomschr commented 1 year ago

After compiling the SLE HA with the current 2.87.0 stylesheets, I don't see any serif fonts in SVG graphics at all. See the following screenshot:

Screenshot_20221128_102039

The font "Poppins" was manually added in DAPS in issue openSUSE/daps#684. I think this should be fixed. There is also an entry in /etc/daps/fop/fop-daps.xml with this font name.

@taroth21 Can you confirm? Is this bug still relevant?