currently trying to work out how to take a few words of text and make them fill a given space edge to edge by
1. breaking up the text into individual lines
2. altering the font size of the individual lines
3. fiddling the letter-spacing/tracking of each line
and then render to an image. Python GI CairoPango? (I can do this one, but it's not well documented) HTML+JS? (unclear how to get the text metrics unless I run it in a browser, then saving is fiddly.) Something else?

Follow

@sil I did something along these lines once with Cairo/Pango (varying the font size and the number of lines to fill the space vertically, rather than horizontally as you're doing, but still). This was so long ago that I don't think GI was a thing yet, mind.

Sign in to participate in the conversation
Mastodon

Time for a cuppa... Earl Grey please!