Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
need help printing a scaled string in a custom font to a 32-bit image
#9
(07-02-2025, 10:24 PM)SMcNeill Wrote:
(07-02-2025, 08:48 PM)madscijr Wrote: Steve, why do you use _UFontHeight instead of _FontHeight? _FontHeight is working for me, just curious why the different function? 
Okay, here's the skivvy on those two functions:

_UFontHeight doesn't do that.  Instead, it looks at the *base* of the font and makes the size according to that.   In many cases, those values will match, or only be 1 or 2 pixels different.
I have a followup question - I notice there's no _UFontWidth, so for monospace we should use _FontWidth and for non-fixed-width fonts _UPRINTWIDTH ?
Reply


Messages In This Thread
RE: need help printing a scaled string in a custom font to a 32-bit image - by madscijr - 07-03-2025, 03:36 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Question Experimenting with a "StringList" type for simpler handling of string arrays/lists Heimdall 18 1,184 12-19-2025, 12:51 PM
Last Post: Heimdall
  Font Size in Threads Dimster 5 361 12-12-2025, 04:49 PM
Last Post: Dimster
  Sub not Reconizing Dim as String pmackay 18 1,449 10-16-2025, 03:32 PM
Last Post: pmackay
  error doing image collision detection with _MemGet madscijr 55 4,656 10-01-2025, 03:25 PM
Last Post: bplus
  Problem with font in Teletext browser. SquirrelMonkey 7 743 08-27-2025, 11:38 AM
Last Post: BDS107

Forum Jump:


Users browsing this thread: