Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problem lining up same font with different heights.
#9
All that information tends to be stored in the font itself.  Baseline, height, padding, line spacing, ect, ect.

You can keep your execution times down, by pre-processing those calculations.  Make an array of 0 to 255, slide each character through it, and calculate once what the blank pixels are going to be for each character and store it.   Then instead of the row - fh&, it'd be row - char_height(ascii_value) for placement.
Reply


Messages In This Thread
RE: Problem lining up same font with different heights. - by SMcNeill - 08-03-2024, 01:42 PM



Users browsing this thread: 16 Guest(s)