Chevy Ray Profile picture
Video game designer, coder, artist, & writer. he/they Contact me: happytrash@gmail.com For Ikenfell-related business, contact Mai: mai@humblebundle.com
Dec 9, 2022 4 tweets 2 min read
messin around with generic roguelike tileset idea today. currently 10x14, though i may change that. messing around with wall ideas before i do characters trying to decide which walls i like more. the small ones (A) look really nice and take up less space. but the large ones (B) allow me to create different tops and sides and are easier to mix & match. with the small ones i'd have to create a bunch of combinations.
Nov 7, 2022 4 tweets 1 min read
Ok i think i’ve figured out my contouring algorithm finally. basically trying to calculate outline contours for pixel fonts, but handing “holes” and “touching corners” correctly. i kept coming up with sophisticated solutions that always failed on specific cases… but i finally figured out that by just doing a ring-loop search on the simplest algorithm, i was able to kind of abuse a lucky trick and ended up with a very simple solution that seems to output completely optimized contours haha
Nov 6, 2022 7 tweets 5 min read
little rust tool now can convert 1-bit images to contoured opentype fonts, with the help of a little descriptor file that contains other info (kerning, name/copyright, some metrics, etc.)

next step is to combine these adjacent contours into larger ones to optimize it shout outs to FontForge for helping me debug the OTF files. it didn't give *super* great errors, but good enough errors when the files were invalid that i was able to eventually track down the problems and get working glyphs.
Nov 5, 2022 6 tweets 1 min read
only remaining problem with my OTF encoder is for some reason i can never get glyph induces to line up correctly. there’s something off by 1 and i can’t find where. glyph 0 is expected to be a dead glyph, but idk if and where the encoding expects me to count its existence i think the index-to-location (`loca`) table is where i'm messing something up. the description is a bit confusing... Image
Nov 4, 2022 7 tweets 2 min read
jesus OTF and TTF are atrocious formats. i’m having a really hard time encoding them. so i found and tried this nice rust library and got it all set up and it took me like a day only to find out that several essential OTF tables aren’t even supported lmao noooo i might try writing the TTF encoder again since OTF is just barf