rust-font-loader
rust-font-loader copied to clipboard
Expose font information
Get information about the font when loading it, such as name, file path, etc. All the information provided by fontconfig or its macos/windows counterparts should be there. If you like, I can write a PR for Fontconfig's part of this, but I don't use windows or macos so I can't help you there.
I could provide a windows implementation.
Could you describe the use case?
In my program I allow the user to provide the font name as a command-line argument, and this lets me load the font on any platform. This specific feature would be useful because I want to show information about the font as part of the debug logs.
Having the font path would be very useful.