bithost-gmbh / pdfviewhelpers

TYPO3 CMS extension that provides various Fluid ViewHelpers to generate PDF documents.
GNU General Public License v3.0
44 stars 20 forks source link

Custom fonts with same family but different styles always uses "regular" style #161

Closed Teddytrombone closed 4 years ago

Teddytrombone commented 4 years ago

Describe the bug If you use custom fonts with same family but different styles like regular and bold, then the pdf only has the regular style.

Environment TYPO3 version(s): v9.5.16 pdfviewhelpers version: v2.2.2, v2.3.2

Steps to reproduce Register two fonts, e.g. "font" and "fontb". "fontb" is the bold version of "font". Now create a PDF which renders an HTML string with regular and bold text using "font". In the resulting PDF, the text uses only "font".

maechler commented 4 years ago

@Teddytrombone Thank you very much for your bug report and providing a fix! I will have a look at it this week and release a new version.

maechler commented 4 years ago

@Teddytrombone I just released a new version v2.3.3 including your fix. Thanks again very much for that!