psliwa/PdfBundle

fonts.xml doesn't get parsed correctly

Closed this issue · 2 comments

I am trying to copy the contents of bundled fonts.xml to my own fonts.xml which is in app/config/fonts.xml

In config.yml I define:

ps_pdf:
    fonts_file: "%kernel.root_dir%/config/fonts.xml"

However it throws "helvetica is not defined". Actually when inspecting FontRegistry::fonts there is only DejaVuSans in the array...

Can you show your fonts.xml file?

For test purposes I just used the contents of this file: https://github.com/psliwa/PHPPdf/blob/master/lib/PHPPdf/Resources/config/fonts.xml