How to Use Different Fonts in HTML Object

May 23, 2024 06:54:11
kaya.murer
Topics: 7
Messages: 20
Hi support team,

I've uploaded two fonts: "Univers LT Pro 55 Roman" and "Univers LT Pro 65 Bold".
I am using a single HTML object with the following HTML and CSS:

HTML:
<p><span>[e2pdf-wp key="title"]</span></p>
<p>[e2pdf-wp key="text"]</p>

CSS:
p span {
font-family: "Univers LT Pro 65 Bold";
}

I've set the font of my HTML object to "Univers LT Pro 55 Roman".
But I'm not sure how to ensure that the text inside the span tags is in Univers LT Pro 65 Bold.
With my solution the text is rendered different than the other text but not in Univers LT Pro 65 Bold.

Could you please help me achieve this?

Thanks!
May 23, 2024 07:26:50
E2Pdf
Topics: 7
Messages: 3617
Support
Hello,

The usage and CSS is correct. If it's not rendered as expected, ensure you are using the correct font-family. It needs to use the "bold" value from the "E2Pdf" -> "Settings" -> "Fonts".

See please the screenshot attached.

If you still fail with setup - please attach or share the links to the fonts used.

We would really appreciate your feedback at WordPress.org!
May 23, 2024 07:42:00
kaya.murer
Topics: 7
Messages: 20
Hi Support Team,

Thank you for the quick assistance. I logged in to check if I had written everything correctly, and I noticed that everything is now working and the correct font is being loaded. I think it might have been a cache problem that was causing the issue.

Thanks again!

Best regards, Kaya
Get News and Updates
Our monthly newsletter keeps you in the loop, so you'll always be up to date with the latest news and updates about E2Pdf.
* You can update your email subscription preferences here.
All trademarks, service marks, trade names, product names, and logos appearing on this website are the property of their respective owners. The use of trademarks such as Formidable Forms®, Forminator Forms®, Gravity Forms®, JetFormBuilder®, WordPress®, WooCommerce®, WPForms® and others is solely for identification purposes (nominative use) and does not imply any affiliation, sponsorship, or endorsement by the respective trademark holders.
© 2017 - 2026, https://e2pdf.com

We use cookies to collect and analyse information on site performance and usage, to provide social media features and to enhance and customise content and advertisements. By clicking "Accept Selected", you consent to use of selected cookies according to our Cookie Policy.