Fonts in cfdocument can't be used in all elements

Description

When using custom fonts in any element besides <p> they are ignored. Worked in Lucee 4.5.

Use the attached fonts.jar and test.cfm to test.

test.cfm:

Environment

None

Activity

Show:
Pothys - MitrahSoft
October 25, 2017, 7:54 AM

I've tested this & Confirmed that issue happened on the latest version. If we using custom fonts in any element means that font will not applied. In lucee 4.5 version working as expected.

Jonathan van Zuijlekom
November 14, 2017, 1:59 PM

Is a fix for this planned?

Jonathan van Zuijlekom
December 21, 2017, 11:29 AM

Is there anything I could do to fix this? This bug is holding us back from updating to Lucee 5.

Michael Offner
October 12, 2018, 11:28 AM
Edited

The new version no longer supports fonts.jar but instead we added support for the attribute "fontdirectory" to the tag cfdocument and you can define "this.pdf.fontdirectory" in the Application.cfc. This should be a directory holding fon files (.ttf,.otf).
If no fontDirectory is defined, the PDF Extensions checks for fonts at "WEB-INF/lucee/fonts/"

Michael Offner
October 12, 2018, 11:29 AM

The PDF Extension now detects if there is a fonts.jar and if so extract the fonts to the default font directory at WEB-INF/lucee/fonts.

Fixed

Assignee

Michael Offner

Reporter

Jonathan van Zuijlekom

Priority

Critical

Labels

Fix versions

Sprint

None

Affects versions