Regression: fontDirectory not used in new PDF engine

Description

On the new PDF engine, the fontsDirectory seemed to not be used at all. The pd4ml.properties file is not created and the fonts are not used. It may be related to this commented out line:

https://github.com/lucee/extension-pdf/blob/303a4cd528949a81db210b9ca1bd5a84f98e9956/source/java/src/org/lucee/extension/pdf/xhtmlrenderer/FSPDFDocument.java#L67

Environment

None

Activity

Show:
Brad Wood
January 12, 2021, 2:26 PM

are you saying that it's impossible to have any sort of custom fonts in the new PDF engine that Lucee uses?

no what i say is that that pd4ml specific way to do it, is no longer supported.

You, say "no", but I swear you mean "yes". It still sounds like you're saying there is no way to use custom fonts. If this is wrong, then please explain how to use custom fonts in the current version of Lucee because I can't figure it out and the fontDirectory is no longer supported from what I'm reading. This really should have all been clearly documented back when Flying Saucer was implemented.

Pothys - MitrahSoft
3 days ago

, I've attached a zip file for cfdocument with type ( modern and classic ). If we check fontdirectory with type = "modern" means, fontdirectory will work.
And but, if we use type="classic", the font directory will not work. Please check it and report.

Brad Wood
3 days ago

I'm confused because "type" isn't even a valid attribute to the cfdocument tag:

https://cfdocs.org/cfdocument
https://docs.lucee.org/reference/tags/document.html

We should not be adding feature without documenting them!

Nonetheless, my ticket above was entered in because I couldn't get it working on the modern PDF engine. This ticket of yours appears to be for the same issue, yes?
https://luceeserver.atlassian.net/browse/LDEV-2707

Zac Spitzer
3 days ago

type is, it just doesn’t show up in docs for some reason?

https://docs.lucee.org/guides/cookbooks/Flyingsaucer.html

Zac Spitzer
3 days ago

that’s quite odd, I have filed a bug about the missing attribute

Assignee

Michael Offner

Reporter

Brad Wood

Priority

New

Labels

Fix versions

None
Configure