The answer is you can't, through pure Racket, because Racket delegates the 
nitty-gritty of font-file resolution to external font-handling libraries.

It is possible, however, to call into the `fontconfig` library via the FFI and 
make it do the heavy lifting of 1) scanning font directories to amass a list of 
possible fonts and then 2) finding a match for a certain query pattern, say a 
family name.



> On Mar 31, 2020, at 4:52 PM, Matthew Butterick <[email protected]> wrote:
> 
> IIUC every `font%` object must correspond to a particular font file on disk.
> 
> If so, given a `font%` object, how do I extract the path to that file?

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/C28B01B3-4772-4AA4-899C-78DADE7B8B2A%40mbtype.com.

Reply via email to