Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PDF: Poppins font from graphics not picked up #489

Open
taroth21 opened this issue Aug 17, 2022 · 1 comment
Open

PDF: Poppins font from graphics not picked up #489

taroth21 opened this issue Aug 17, 2022 · 1 comment
Labels
cat-bug Malfunction, unexpected behavior format-pdf pdf support styles-2022 "suse2022-ns" styles

Comments

@taroth21
Copy link
Contributor

taroth21 commented Aug 17, 2022

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 tomschr added cat-bug Malfunction, unexpected behavior format-pdf pdf support styles-2022 "suse2022-ns" styles labels Aug 17, 2022
@tomschr
Copy link
Collaborator

tomschr commented Nov 28, 2022

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cat-bug Malfunction, unexpected behavior format-pdf pdf support styles-2022 "suse2022-ns" styles
Projects
None yet
Development

No branches or pull requests

2 participants