Log In  

Cart #34443 | 2016-12-29 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA


I wanted to make something that let me use different type-faces, so here's a rudimentary implementation of text-to-sprite.
I'd be quite happy to hear improvements, because I can't imagine my lookup table is the most effective method... >.>;

Hopefully, it'll be useful to someone! :)

P#34444 2016-12-29 13:58 ( Edited 2017-01-07 00:09)

Instead of comparing letter to every character, you can use much simpler function like posted here: https://www.lexaloffle.com/bbs/?tid=2420

P#34455 2016-12-29 16:34 ( Edited 2016-12-29 21:34)

Oh thank you~! I hadn't noticed your comment at all before just now! :o

P#35127 2017-01-06 19:09 ( Edited 2017-01-07 00:09)

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-03-28 13:05:05 | 0.011s | Q:16