utils
utils copied to clipboard
git issue tracking custom fonts
I'm wondering how would I track custom fonts in git. The best practice is to gitignore the whole ./vendor directory, but all the custom fonts are saved under ./vendor/dompdf/dompdf/lib/fonts, which creates an issue for me. Is there a way to move the fonts directory out of ./vendor/dompdf?
You should set the fontDir option to a directory outside the vendor directory. The fonts bundled with Dompdf will still be referenced, but any user-installed fonts will be placed in the directory specified by that option.