Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Possible bug: Word-wrap oddity
#8
CORRECTION

Maybe the point size is the number of pixels. I forgot that I was using a font size of 40 in this test which just about matches my calculated number of 39.38. I'm still not sure how to calculate the font size I need to use because I somehow need to account for word wrap and dropping of spaces to accommodate left justification, but I least I have a basis with which to start.

END OF CORRECTION


I have another question related to this discussion.

I would like to be able to allow my program to size the font so that a page of information comes close to filling the entire screen without overflowing it or leaving a huge amount of space unused.

Is there any way to do this?

I was trying to figure out exactly how wide a font would be, but I can't make sense of the numbers. Clearly, when we say that a font is a 16 pt. font that doesn't mean it's 16 pixels high or wide, does it?

As an example, if I run my program full screen, it is then running at a resolution of 2560 x 1440 (on my machine at least). I get 65 characters across on the screen and that works out to roughly 39.38 pixels width per character (and yes, that is monospaced).
Reply


Messages In This Thread
Possible bug: Word-wrap oddity - by hanness - 05-04-2022, 06:41 AM
RE: Possible bug: Word-wrap oddity - by Pete - 05-04-2022, 08:38 AM
RE: Possible bug: Word-wrap oddity - by Pete - 05-04-2022, 09:50 AM
RE: Possible bug: Word-wrap oddity - by SMcNeill - 05-04-2022, 10:35 AM
RE: Possible bug: Word-wrap oddity - by hanness - 05-04-2022, 04:35 PM
RE: Possible bug: Word-wrap oddity - by Pete - 05-04-2022, 05:06 PM
RE: Possible bug: Word-wrap oddity - by SMcNeill - 05-04-2022, 05:50 PM
RE: Possible bug: Word-wrap oddity - by hanness - 05-04-2022, 06:15 PM
RE: Possible bug: Word-wrap oddity - by SMcNeill - 05-04-2022, 06:18 PM
RE: Possible bug: Word-wrap oddity - by Pete - 05-04-2022, 06:29 PM
RE: Possible bug: Word-wrap oddity - by SMcNeill - 05-04-2022, 06:50 PM
RE: Possible bug: Word-wrap oddity - by Pete - 05-04-2022, 09:57 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Is this a bug with Round or is it just me BarrySWTP 10 1,288 07-07-2025, 08:40 PM
Last Post: BarrySWTP
  Exiting FOR NEXT, maybe a bug? Version 4.1.0 on Linux Circlotron 4 866 05-09-2025, 02:22 AM
Last Post: Circlotron
  I have fallen in a bug or weird behaviour TempodiBasic 2 689 10-08-2024, 06:09 PM
Last Post: TempodiBasic
  3.13.1 bug report - keyboard characters swapped Circlotron 3 1,023 06-03-2024, 05:16 AM
Last Post: Circlotron
  I need input on a possible bug in v3.5.0 TerryRitchie 50 8,603 05-22-2024, 07:03 PM
Last Post: TerryRitchie

Forum Jump:


Users browsing this thread: 1 Guest(s)