You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Time conversions with lots of timezones tracked can get pretty unwieldy.
Discord has no way to display text in tabular formats, and even if it did, a taaaaall table would still be a bit unkind to look at. I think it would be nicer aesthetically to generate an image. Images are visually scaled down, so this would make Sandpiper less intrusive with her conversion blob.
I did some preliminary work with this earlier this year, attempting to use an image generation library Cairo and text layout library Pango, and they were a struggle to set up (they're C libraries) and incredibly difficult to get to do what I wanted. I was writing functions to manually position text, using contexts to change colors and positions, writing to an SVG and then converting that to PNG to get text antialiasing... it was not enjoyable at all.
After a bit of time to think about it, I've realized that everything I was doing is already a solved problem. There was no benefit to what I was doing, so I would like to instead use HTML and CSS to render these images. Layout, text rendering, and images are easy peasy with HTML/CSS, and also much more maintainable.
The text was updated successfully, but these errors were encountered:
Time conversions with lots of timezones tracked can get pretty unwieldy.
Discord has no way to display text in tabular formats, and even if it did, a taaaaall table would still be a bit unkind to look at. I think it would be nicer aesthetically to generate an image. Images are visually scaled down, so this would make Sandpiper less intrusive with her conversion blob.
I did some preliminary work with this earlier this year, attempting to use an image generation library Cairo and text layout library Pango, and they were a struggle to set up (they're C libraries) and incredibly difficult to get to do what I wanted. I was writing functions to manually position text, using contexts to change colors and positions, writing to an SVG and then converting that to PNG to get text antialiasing... it was not enjoyable at all.
After a bit of time to think about it, I've realized that everything I was doing is already a solved problem. There was no benefit to what I was doing, so I would like to instead use HTML and CSS to render these images. Layout, text rendering, and images are easy peasy with HTML/CSS, and also much more maintainable.
The text was updated successfully, but these errors were encountered: