Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
using a custom tileset as a fixed-width font for _PrintString ?
#8
(03-07-2025, 08:19 PM)madscijr Wrote:
(03-07-2025, 07:45 PM)bplus Wrote: Here is alternate way to handle font sheet I came up with 7 years ago:

Cool, thanks for sharing. Can it quickly change the fg & bg color of a character on the fly?

Foreground colors are in the tiles; backcolor is trasparent so prints only colored stuff from the bmp file.
Remember the bmp file is a giant image and you have to pick out the sections for the letters off the image that is what the 2 subs do in demo code. One picks out the letter coordinates of image, the other "prints" out the type in images on screen. The alternate method is about displaying images as opposed to printing a font.
b = b + ...
Reply


Messages In This Thread
RE: using a custom tileset as a fixed-width font for _PrintString ? - by bplus - 03-07-2025, 08:50 PM



Users browsing this thread: 3 Guest(s)