Menu

#341 Allow add-on fonts to be found a folder in addition to TCPDF's own fonts folder

open
font (2)
4
2015-10-28
2015-10-28
Dennis
No

I am using composer dependency manager which installs TCPDF into the vendor folder of my project. All the fonts TCPDF uses are inside that folder. I need to be able to add my own fonts, but by definition I am not allowed to touch vendor folder because it is reserved for libraries only and it is not for me to add or remove or alter anything in there.

if I set K_PATH_FONTS = 'myown/folder/fonts'; which contains a font, like myownfont.z,
that does not work, because it does not have fonts like helvetica and all the other TCPDF-supplied fonts.

In short, I need to be able to define an Additional font folder that contains user-defined fonts, that is separate from that of the TCPDF's own font folder. Currently it's TCPDF font folder, or user-defined folder, but not both.

If you have a way to open a pull request, let me know, I can help implement this feature.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB