rust-font-loader icon indicating copy to clipboard operation
rust-font-loader copied to clipboard

Expose font information

Open ashkitten opened this issue 6 years ago • 3 comments

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.

ashkitten avatar Aug 10 '17 21:08 ashkitten

I could provide a windows implementation.

Could you describe the use case?

matprec avatar Aug 10 '17 21:08 matprec

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.

ashkitten avatar Aug 10 '17 22:08 ashkitten

Having the font path would be very useful.

windy1 avatar Mar 15 '20 20:03 windy1