gennyble / textual

Text Rendering as a Service
Other
10 stars 1 forks source link

Serve information on the server #17

Open gennyble opened 2 years ago

gennyble commented 2 years ago

Currently we have the info query boolean which returns an image like the one below. An info image. It shows the current time, date, and amount of data sent. Also the number of fonts in the cache, currently

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.

gennyble commented 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