Cleaned up font usage


Updated to use "github.com/tinne26/etxt" rather than the font method I was using. HUGE improvement.

Files

ebiten-demo-golang-source.zip Play in browser
Version 7 Jul 29, 2022

Get Ebiten Demo

Comments

Log in with itch.io to leave a comment.

Hey, cool to see this here! If you want smooth expansion of the text on the initial screen instead of the current pixel-by-pixel size increase, you can disable quantization completely on the renderer and use fractional pixels to set the size. You can convert from floats to fixed.Int26_6 easily, for example with etxt/efixed.FromFloatRoundAwayZero. It may put quite a bit of pressure on the system though, as that would generate multiple new glyphs very often, so you would have to test and see.

You may also want to add an epilepsy warning for that title screen!

Looking forward to more projects now that you've got gopher rotation under control ;-)

(+1)

I'll definitely look into that resizing. I honestly had (err still have actually) no idea what that code is actually doing other than it "appears" to do what I intended. The more I dig into your lib, the more I learn about it. I'm recommending it to everybody who uses fonts. :) 


oh didn't even consider the epilepsy warning. This whole project started out as nothing more than just a brain dump of "what can I do to demo this?" 


thanks so much for the help so far. I look forward to asking you a lot more XD