RE: https://mastodon.gamedev.place/@eniko/116279471062633993

ok this might be a zany ass idea but... what if... 320x200 but with 2 pixel tall dither as a stylistic choice? eh? eh? eh? :D

wake up babe new font just dropped

look ma, no text jumping*!

*in my wordwrapped typewriter text

i have 3 iterative functions here:

1. gets the next word (spaces/newlines count as a 1 character "word")
2. wraps words iteratively, recording width, max width, and height
3. uses the wrapping function to get the next word, then draws it 1 character at a time

it's quite a clean implementation

btw my font format for this project is *incredibly* sophisticated
at least i've made things easy for @foone
@eniko I'm always grateful for simple font formats!
@foone @eniko
How do you feel about vector font formats?
@eniko If only A was made of As, B of Bs and so on
@sobkas you could do that and it would still work :D
@eniko we heard you like ASCII so we put ASCII art inside your font so you can make ASCII art out of other ASCII art
@eniko I'm having flashbacks to Pixmap files when learning X11 programming in the mid-90s...
https://en.wikipedia.org/wiki/X_PixMap
@eniko I saw this in my favourites and now I’m wondering what the first 5 lines are, guessing a header something like:
- magic/version?
- baseline
- line height
- character width
- number of characters
@bnut Vertical advance between lines (line height)
Spacing between characters
Character height
Space width
Number of characters
@eniko ah, so close, and I guessed the first but came back here to update my guess only to see I was too late
@eniko games it's a pet hate of mine when games write out text a character at a time but only wrap once a word has gotten too long, making it jump from one line to the next. This is so much cleaner!
@Lacey it's impressive how many games do that, even those which are highly refined in other aspects. @eniko
@RedGlow @eniko exactly, it always feels lazy
@eniko bacon ipsum > lorem ipsum. imho. =)