Skip to content

Unable to import custom fonts #37

@badB00l

Description

@badB00l

I was trying to import a custom font (Calibri) in this directory
app/Resources/PHPPdf/Resources/fonts/Calibri

so I create a custom fonts.xml in
app/Resources/PHPPdf/Resources/config/

and change my config.yml inserting these two optional lines, as explained in the guide

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

but it isn't seen at all because when it load my just modified detail.pdf.twig an error occur

Font "/Applications/XAMPP/xamppfiles/htdocs/myProject/vendor/psliwa/php-pdf/lib/PHPPdf/Resources/fonts/Calibri/bold.ttf" not found.

It's still trying to find the font in the old directory. How can I solve this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions