Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
using a custom tileset as a fixed-width font for _PrintString ?
#1
Is there an easy way to tell your program to use a tileset defined in a PNG or other image file as the fixed-width font for _PrintString, where the character width/height would be square (8x8 or 16x16 or 32x32) as opposed to the default font's 8x16, and ideally have the color command work too (or maybe convert an image file to a TTY font on the fly for this purpose)? 

I haven't done anything with setting the font inside a program, but was wondering about this as a faster way to draw tiles (as opposed to hardware images). 

I'll attach an example tileset of 8x8 tiles and 16x16 tiles, with a transparent background and a version with a white background. If the tileset has to be in some other form, I can move the tiles around to whatever dimensions are required.


Attached Files Image(s)
               
Reply


Messages In This Thread
using a custom tileset as a fixed-width font for _PrintString ? - by madscijr - 03-07-2025, 05:04 PM



Users browsing this thread: 14 Guest(s)