Project

General

Profile

Bug #712

The columns and lines parameters on Screen Open don't appear to work because the font size is incorrect on the text windows.

Added by Brian Flanagan about 3 years ago. Updated almost 3 years ago.

Status:
Feedback
Priority:
High
Target version:
-
Start date:
04/03/2021
Due date:
% Done:

0%

Estimated time:
1:00 h
Affected version:

Description

The font size for the text window should be automatically adjusted to accommodate the specified columns and lines parameters, but it is not.

Example: (in AOZ manifest)

#displayWidth: 320
#displayHeight: 256
scrWidth=320
scrHeight=256
Screen Open 0,scrWidth,scrHeight,32,Lowres,40,32
Locate 0,0 : Print "0123456789012345678901234567890123456789"; ' 40 columns
For row=0 To 4
    Locate 0,row
    Print row;
Next row
Locate 0,1 : Print X Graphic(1),Y Graphic(1);" ";
Wait Key

Instead of the 40 x 32 display I asked for, I got approximately 13x6.
In the example, the font size should be adjusted from 24x43.2 px to 8x8 px to accommodate the specified rows and lines.

It also does not adjust the other direction. If, for example I have a 1920 x 1080 pixel screen, and I tell it I want 40 columns x 20 lines, I still get the default of 80x25.

scrWidth=1920
scrHeight=1080
Screen Open 0,scrWidth,scrHeight,32,Lowres,40,20
Locate 0,0 : Print "0123456789012345678901234567890123456789"; ' 40 columns
Print "0123456789012345678901234567890123456789"; ' 40 more
For row=0 To 23 // 4
    Locate 0,row
    Print row;
Next row
Locate 0,1 : Print X Graphic(1),Y Graphic(1);" ";
Wait Key

Files

Text_Font_Size_Wrong.png (242 KB) Text_Font_Size_Wrong.png Brian Flanagan, 07/13/2021 11:26 PM

Also available in: Atom PDF