I've created a 5x4 font with lowercase letters. (Mostly, it's actually 6x5. Some lowercase letters (gjpqy) and symbols ()[]{};, go below to the 6th line. Some letters (MWYwm) use a 5th pixel width.) It uses the new variable width feature.
I've added to @zep's #font_snippet cartridge the ability to specify the pixel width adjustments by using the sprite flags. Now you can make your own variable width fonts. When the cart is run it produces the correct string to split and poke into memory. You can switch between fixed and variable width.
Here is the snippet to use femto-font in your own carts:
-- femto-font by McLeopold poke(0x5600,unpack(split"5,8,7,0,0,1,0,0,0,0,119,119,119,97,118,96,85,23,17,80,102,119,118,21,112,0,0,0,0,101,119,119,0,112,0,7,80,7,21,0,0,0,119,23,7,96,97,7,6,0,0,0,112,0,23,0,0,0,7,23,16,112,117,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,31,31,31,31,31,31,0,0,0,15,15,15,0,0,0,0,0,15,9,15,0,0,0,0,0,9,6,9,0,0,0,0,0,5,0,5,0,0,0,0,0,5,5,5,0,0,0,0,4,6,7,6,4,0,0,0,1,3,7,3,1,0,0,0,7,1,1,1,0,0,0,0,0,4,4,4,7,0,0,0,17,10,31,4,31,4,0,0,0,0,3,0,0,0,0,0,0,0,0,0,1,2,0,0,0,5,5,0,0,0,0,0,0,5,5,0,0,0,0,0,2,5,2,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,1,0,0,0,5,5,0,0,0,0,0,0,10,31,10,31,10,0,0,0,14,5,14,20,14,0,0,0,17,8,4,2,17,0,0,0,6,1,10,5,10,0,0,0,1,1,0,0,0,0,0,0,2,1,1,1,1,2,0,0,1,2,2,2,2,1,0,0,0,5,2,5,0,0,0,0,0,2,7,2,0,0,0,0,0,0,0,0,2,1,0,0,0,0,7,0,0,0,0,0,0,0,0,0,1,0,0,0,16,8,4,2,1,0,0,0,6,13,11,9,6,0,0,0,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6,9,9,5,14,0,0,0,7,9,7,5,9,0,0,0,14,1,6,8,7,0,0,0,7,2,2,2,2,0,0,0,9,9,9,9,6,0,0,0,5,5,5,7,2,0,0,0,17,17,21,27,17,0,0,0,9,9,6,9,9,0,0,0,17,17,10,4,4,0,0,0,15,8,4,2,15,0,0,0,4,2,3,2,2,4,0,0,1,1,0,1,1,1,0,0,1,2,6,2,2,1,0,0,0,0,10,5,0,0,0,0,0,0,0,0,0,0,0,0,127,127,127,127,127,0,0,0,85,42,85,42,85,0,0,0,65,127,93,93,62,0,0,0,62,99,99,119,62,0,0,0,17,68,17,68,17,0,0,0,4,60,28,30,16,0,0,0,28,46,62,62,28,0,0,0,54,62,62,28,8,0,0,0,28,54,119,54,28,0,0,0,28,28,62,28,20,0,0,0,28,62,127,42,58,0,0,0,62,103,99,103,62,0,0,0,127,93,127,65,127,0,0,0,56,8,8,14,14,0,0,0,62,99,107,99,62,0,0,0,8,28,62,28,8,0,0,0,0,0,85,0,0,0,0,0,62,115,99,115,62,0,0,0,8,28,127,62,34,0,0,0,62,28,8,28,62,0,0,0,62,119,99,99,62,0,0,0,0,5,82,32,0,0,0,0,0,17,42,68,0,0,0,0,62,107,119,107,62,0,0,0,127,0,127,0,127,0,0,0,85,85,85,85,85,0,0,0")) |
EDIT: as soon as I hit publish I realized I didn't like the Q. I've changed the snippet. I'm to lazy to update the image and cart. ;)
And here is the cart to make your own fonts:
@McLeopold, you might be interested in a tool I wrote just for this. If anything I guarantee it will make both the code to initialize your custom font smaller in coding size and the actual data itself.
My friend @McLeopold,
Do you mind if I use this font for a dating game I'm almost done with? There's a lot of text to read, and I'd like the option of making it look presentable with the nice font you've made here.
@ScientistWD Absolutely!
@dw817 Does the token count go down too?
[Please log in to post a comment]