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

Attachments

2

Activity

Michael Offner 12 October 2018 at 11:29

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.

Michael Offner 12 October 2018 at 11:28
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/"

Jonathan van Zuijlekom 21 December 2017 at 11:29

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

Jonathan van Zuijlekom 14 November 2017 at 13:59

Is a fix for this planned?

Pothys - MitrahSoft 25 October 2017 at 07:54

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.

Fixed

Details

Assignee

Reporter

Priority

Labels

New Issue warning screen

Before you create a new Issue, please post to the mailing list first https://dev.lucee.org

Once the issue has been verified, one of the Lucee team will ask you to file an issue

Sprint

Affects versions

Created 23 October 2017 at 13:24
Updated 13 August 2019 at 15:19
Resolved 12 October 2018 at 14:11