dabega / genpdf-rs

12 stars 8 forks source link

Font family filenames #2

Open Joeboy opened 1 year ago

Joeboy commented 1 year ago

Hi

I'm not exactly sure how it's supposed to work, but I downloaded the Courier Prime fonts, and the files are named eg Courier Prime Bold.ttf. If I try to load them with genpdf::fonts::from_files, genpdf errors out unless I rename them to eg. Courier Prime-Bold.ttf. I think I probably shouldn't have to do that, so I guess apps are supposed to look for TTFs with spaces as well as dashes?