Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Changing font-size in _rgb32 mode
#8
(04-08-2023, 04:15 PM)Kernelpanic Wrote: It goes, but: "Locate" does not take into account the positioning by graphic pixels. After what is based on something the positioning after increasing the font size?  Sad

It's not productive to use LOCATE in a graphics screen. What would be an RPG programmed in QB64PE if only LOCATE and PRINT could be used to display text? No game programmer in his/her right mind would take up that offer, and wouldn't create thousands of picture files that have to be imported, only for basic printed text! Maybe for stuff which is embossed, or aligned into curves or other fancy effects found on signs but anyway...

You're supposed to use _FONTHEIGHT() and _PRINTWIDTH() to determined the dimensions of a font letter, and then use that information toward _PRINTSTRING. That's to show text anywhere on the screen, not aligned according to rules of 16-bit software and tiny amounts of memory. This is so we don't have to draw characters using DRAW, but I'm still waiting for that kewl vector font library that somebody else didn't finish long ago...
Reply


Messages In This Thread
RE: Changing font-size in _rgb32 mode - by bplus - 04-08-2023, 01:51 PM
RE: Changing font-size in _rgb32 mode - by mnrvovrfc - 04-08-2023, 06:04 PM
RE: Changing font-size in _rgb32 mode - by bplus - 04-08-2023, 05:10 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Enlarging window for older BAS programs (ie. Screen 7 mode) paulel 5 422 12-24-2025, 09:36 PM
Last Post: paulel
  Font Size in Threads Dimster 5 377 12-12-2025, 04:49 PM
Last Post: Dimster
  auto-detecting screen resolution for optimal window size on non-Windows systems madscijr 11 1,085 11-10-2025, 07:23 PM
Last Post: madscijr
  auto-detecting screen resolution for optimal window size on non-Windows systems madscijr 0 227 10-26-2025, 06:58 PM
Last Post: madscijr
  Problem with font in Teletext browser. SquirrelMonkey 7 763 08-27-2025, 11:38 AM
Last Post: BDS107

Forum Jump:


Users browsing this thread: 1 Guest(s)