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

otf format #105

Closed huelsmc closed 5 years ago

huelsmc commented 5 years ago

Hey,

in the documentation of TCPDF you can see that it also supports otf fonts. Is it somehow possible to add this type to a document? Tried via type= OpenType but this didn't work (as it is in your documentation).

Greetings

maechler commented 5 years ago

Yes, TCPDF should support OTF fonts, but I just came across this line of code in TCPDF:

} elseif (substr($font, 0, 4) == 'OTTO') {
    // Open Type (Unicode or not)
    //Unsupported font format: OpenType with CFF data
    return false;
} else {

So maybe you have an OpenType font with CFF data? That would not be supported by TCPDF.

A couple of things you could try:

huelsmc commented 5 years ago

Thanks for your feedback. I will test this. It's totally possible that the font has CFF data (sorry i have not that much experience with fonts). This probably can be closed.

maechler commented 5 years ago

I just reopen the issue in order to add a note about this to the documentation. If you find a way to solve your issue, it would be nice if you would share your solution. If you like the project, please consider giving it a star :)