psliwa/PdfBundle — Issue #7: Font files saved in different place
Author: pulzarraider
Created: 2012-01-29 21:30:38+00:00
State: open

I would like to store font files in MyCustomBundle/Resources/fonts dir. I've created my own fonts.xml file and modify config.yml.

Everything works great if the paths to font files are absolute in my developer machine. But the paths can't be absolute because production server has different paths. I can't use %resources% parameter, becuse it is path to PHPPdf Resources dir in which i don't want to store my custom fonts or do any change.

Is there any solution for this issue?

Is there any configurable paramater, for example %kernel_root_dir% or %font_dir% I can use in fonts.xml?