utils icon indicating copy to clipboard operation
utils copied to clipboard

git issue tracking custom fonts

Open sistemanick opened this issue 1 year ago • 1 comments

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?

sistemanick avatar Jan 17 '24 07:01 sistemanick

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.

bsweeney avatar Jan 17 '24 14:01 bsweeney