Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Font Sizes
#1
For a few hours today I was VERY close to converting my orbital Earth animation to text that orbits the Sun instead, up to 5 letters, numbers, or symbols. I even got it working but then I realized that it kept using the _LOADFONT over and over again which got dangerously close to to using too much memory. Then I tried just the _FONT f&, fontsize command but for some reason that couldn't work. Then I tried the RotoZoom method but I couldn't figure out how to remove the darkness from covering up the Sun with _COPYIMAGE (0). Then lastly I tried _PUTIMAGE and for some reason that didn't work at all, even using _NEWIMAGE, although it's been a very long time since I've used those commands. Isn't there an easy way to make the FONT change size by pixel length without having to keep loading more and more of them non-stop? I tried _FONTWIDTH but I couldn't figure that out either. Any ideas? Thanks. 

I even tested _FONT in another program and that didn't work either. Also with _FONT fontsize (where fontsize is the variable). I know that's not pixel length and must be the size the font comes with but I checked that on WordPad. I made a few IF/THEN statements changing the number to when the pixel length was at certain amounts.
Reply
#2
Set up a quick and simple font array like I do here https://qb64phoenix.com/forum/showthread.php?tid=711 , and then just change the index of that font array as needed to adjust your font size on the fly.
Reply
#3
Wow thanks Steve! I did it! I'll post the app in the Programs section in a second. I totally didn't think of putting all the sizes in separate arrays. Smile
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Font Size in Threads Dimster 5 361 12-12-2025, 04:49 PM
Last Post: Dimster
  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
  need help printing a scaled string in a custom font to a 32-bit image madscijr 9 1,150 07-03-2025, 04:48 PM
Last Post: SMcNeill
  using a custom tileset as a fixed-width font for _PrintString ? madscijr 11 2,265 06-05-2025, 05:50 PM
Last Post: madscijr

Forum Jump:


Users browsing this thread: 1 Guest(s)