Open gennyble opened 2 years ago
Ooooooooooh we can be really cute with this and draw each font using the font itself. I mean, that seems obvious, but I hadn't thought of it. This should only be allowed for currently-on-system fonts as we don't want to pull down every single font that Google has. Also we should consider not loading every font into memory to make this because that could end poorly! What if:
For Google's-fonts-we-don't-have we can use the font the user asks for or use the default.
Drawing this image will probably be pretty intensive? We'll have to parse every font the system has cached and draw a pretty-big image. This should come after/in-tandom-with #21
Currently we have the
info
query boolean which returns an image like the one below.It would be very cool if we could also return an image listing available fonts and which ones we currently have on the system. These should both be served over HTML and via an image.