You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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'.
The text was updated successfully, but these errors were encountered:
tbrowder
changed the title
What happens if 'find-font' finds multiple files? Or does it return the first found for the criteria?
What happens if 'find-font' finds multiple files?
Jul 8, 2023
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.
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'.
The text was updated successfully, but these errors were encountered: