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




Users browsing this thread: 1 Guest(s)