http://support.aoz.studio/http://support.aoz.studio/favicon.ico?15768443862021-04-06T13:10:08ZAOZ Studio official issue tracking systemAOZ Studio Beta - 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.http://support.aoz.studio/issues/712?journal_id=21352021-04-06T13:10:08ZFrancois Lionet
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Resolved</i></li><li><strong>Assignee</strong> set to <i>Francois Lionet</i></li></ul><p>Strange, I updated this bug a couple of days ago and it was forgotten.</p>
AOZ Studio Beta - 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.http://support.aoz.studio/issues/712?journal_id=21362021-04-06T13:11:35ZFrancois Lionet
<ul></ul><p>Strange, I updated this bug a couple of days ago and it was forgotten.<br>
Or I forgot to do it.</p>
<p>This is normal. Calculation of the manifest parameter were wrong. You have to create a new application and not use the tags.</p>
<p>Tags affecting the manifest will be removed, or only in advanced developer mode (us and people who can cope with it and such side effects).</p>
AOZ Studio Beta - 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.http://support.aoz.studio/issues/712?journal_id=21572021-04-11T14:24:38ZBrian Flanagan
<ul><li><strong>Status</strong> changed from <i>Resolved</i> to <i>Feedback</i></li></ul><p>The tags have nothing to do with the issue I'm addressing here.<br>
If you remove the tags from Example <a class="issue tracker-1 status-5 priority-2 priority-default closed" title="Bug: if Amreg(13) < 0 (Closed)" href="http://support.aoz.studio/issues/1">#1</a>, the result is identical.</p>
<p>The issue is that the cols and lines parameters on <strong>Screen Open</strong> have NO EFFECT.</p>
<p>If you remove the tags from the first example, and the result is still incorrect.</p>
<p>In example 1: Even though I specify a 40 x 32 text window, I only get 12 x 5<br>
(Font should scale down to fit 320 x 256 screen)</p>
<p>In example 2: Even though I specify a 40 x 20 text window, I still get 80 x 25<br>
(Font should scale up to fit 1920 x 1080 screen)</p>
<p>To clarify the issue, here are a couple more examples: </p>
<p>The following should produce an error:</p>
<pre>scrWidth = 1920 : scrHeight = 1080
cols=0 : lines=-10
Screen Open 0,scrWidth,scrHeight,32,Lowres,cols,lines
</pre>
<p>...but instead an 80 x 25 text window is used.</p>
<p>This example should create a 120 column by 32 line text window for the 1920 x 1080 screen</p>
<pre>scrWidth = 1920 : scrHeight = 1080
cols=120 : lines=32
Screen Open 0,scrWidth,scrHeight,32,Lowres,cols,lines
</pre>
<p>...but the result is still an 80 x 25 text window.</p>
<p>My guess is that although the cols and lines parameters are accepted, they are ignored.</p>
<p>Are we <strong><em>not</em></strong> planning on having the cols and lines parameters available in version 1? If so, I'll just change this to a Feature Request. Also if so, we need to annotate in the documentation that this feature will be implemented in a future version of AOZ.</p>
AOZ Studio Beta - 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.http://support.aoz.studio/issues/712?journal_id=23042021-07-13T21:30:08ZBrian Flanagan
<ul><li><strong>File</strong> <a href="/attachments/243">Text_Font_Size_Wrong.png</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/243/Text_Font_Size_Wrong.png">Text_Font_Size_Wrong.png</a> added</li><li><strong>Subject</strong> changed from <i>Apparently the columns and lines parameters on Screen Open are not working at this time.</i> to <i>The columns and lines parameters on Screen Open don't appear to work because the font size is incorrect on the text windows.</i></li><li><strong>Estimated time</strong> changed from <i>4:00 h</i> to <i>1:00 h</i></li><li><strong>Affected version</strong> changed from <i>1.0.0 (B7)</i> to <i>1.0.0 (B8) u15</i></li></ul><p>Apparently, the columns and lines parameters are working now, however, since the font size is wrong, the text windows are all messed up. Here's a better example of the current problem. Even with the default screen size of 1920 x 1080 pixels graphic, and 80 x 25 columns text, the font size is still wrong. (See screen snapshot for an illustration.) See also bug <a class="issue tracker-1 status-5 priority-2 priority-default closed" title="Bug: Screen Open clips screen when Text columns & Rows are set. Also font size used is wrong. (Closed)" href="http://support.aoz.studio/issues/801">#801</a> to show the problem when columns and lines are specified:</p>
<pre>cols=80 : lines=25
scrWidth=1920 : scrHeight=1080
Screen Open 0,scrWidth,scrHeight,32,Lowres
Curs Off : Flash Off : Palette 0,$FFFFFF,$77FF77 : Pen 1 : Paper 0 : Ink 1 : Cls 0
tb$=Chr$(9)
Box 0,0 To scrWidth-1,scrHeight-1
Draw 0,0 To scrWidth-1,scrHeight-1
Draw 0,scrHeight-1 To scrWidth-1,0
Ink 1
' Show columns
Locate 0,0
For c=1 to cols
Print Chr$(48+(c Mod 10));
Next
Print : Print "Above line is 60 chars long."
Print
Fix 3
f$="####.#### pixels."
Print "Font width is: "; : Print Using f$; X Graphic(1)
Print " should be: "; : Print Using f$; scrWidth/cols
Print "Font height is: "; : Print Using f$; Y Graphic(1)
Print " should be: "; : Print Using f$; scrHeight/lines
' Show lines
Locate 0,7
For r=8 to lines-1
Print Chr$(48+(r Mod 10))
Next r
Print Chr$(48+(r Mod 10));
Locate 2,19 : Print "The numbers across show the";cols;" columns."
Locate 2, : Print "The numbers across the left edge show the";lines;" lines."
Ink 2
Box 0,0 To cols*X Graphic(1),lines*Y Graphic(1)
Locate 2, : Print "The area bounded by the green rectangle should fill the screen!"
Do
Wait Vbl
Loop
</pre>