pdf-raku / PDF-Font-Loader-raku

Font loader for the PDF tool-chain
Artistic License 2.0
1 stars 3 forks source link

What happens if 'find-font' finds multiple files? #27

Open tbrowder opened 1 year ago

tbrowder commented 1 year ago

From a trial it seems to return the first file found meeting the input criteria. So the docs should say that.

The docs should also clearly state the :find-font option requires Raku module 'FontConfig'.

dwarring commented 1 year ago

I think that the fontconfig library internally sorts by the selection criteria, then returns the best matching font, so should always returned. It's not filtered fonts just sorting them, so the newly introduced :all option will return all known system fonts ordered from best to worst.

Documentation has been edited, and hopefully makes this clearer.