Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
tbrowder opened this issue Jul 8, 2023 · 1 comment
Open

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

tbrowder opened this issue Jul 8, 2023 · 1 comment

Comments

@tbrowder
Copy link

tbrowder commented Jul 8, 2023

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'.

@tbrowder 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
dwarring added a commit that referenced this issue Aug 23, 2023
Link to FontConfig doco. Better state that it's optional
@dwarring
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants