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 Thumbnail(s)
       
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

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

Forum Jump:


Users browsing this thread: 1 Guest(s)