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.
  724  855  599  923  575  468  400  206  147  564  878  823  652  556 bxor cross forever
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

Possibly Related Threads…
Thread Author Replies Views Last Post
  Help: Issues with the _PRINTSTRING and _INPUTBOX$ functions in QB64. qbfans 2 351 02-13-2026, 06:07 AM
Last Post: qbfans
  Font Size in Threads Dimster 5 361 12-12-2025, 04:49 PM
Last Post: Dimster
  Is there something like _RESIZESCREEN width, height? Dav 10 738 11-16-2025, 01:01 PM
Last Post: Dav
  Problem with font in Teletext browser. SquirrelMonkey 7 749 08-27-2025, 11:38 AM
Last Post: BDS107
  need help generating fixed-width BDF fonts with sizes other than 8x8 madscijr 10 1,072 07-12-2025, 03:33 PM
Last Post: madscijr

Forum Jump:


Users browsing this thread: 1 Guest(s)