Forums: Forum of Decimal BASIC (Thread #48927)

Text Width When Using ISO Graphics Compatibility (2023-03-28 13:28 by toml12953 #94766)

When I choose Problem Coordinate (ISO) in the Graphics tab, text width is not maintained in proportion to text height
when using PLOT TEXT and so text is unreadable in many cases. This was not the intention of the ANSI committee.

On page 211 of ANSI INCITS 113-1987 (R2003) it says:

"If possible, the width of characters, in problem coordinates,
should be kept in constant proportion to their height, as
determined by TEXT HEIGHT."

This would keep text readable even when plotting text on a large coordinate system.
Will you be making Decimal BASIC or either one of its compilers conform to the standard?

Reply to #94766×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

Re: Text Width When Using ISO Graphics Compatibility (2023-03-28 15:34 by SHIRAISHI Kazuo #94769)

texts keep the proportion in the problem coordinates, not in the physical coordinates.
When texts are written in a picture definition, they shall be transformed according to the whole picture.
that is, texts are part of a picture.
This means the proportion in the physical coordinates shall be distorted.
If you want draw texts to be readable in the physical coordinates, you must use PLOT LABEL instead of PLOT TEXT.

10 PICTURE a_pic
20 SET TEXT HEIGHT 0.2
30 PLOT LINES:0,0; 0.5,0; 0.5,0.5; 0,0.5; 0,0
40 PLOT TEXT ,AT 0,0 :"BASIC"
50 END PICTURE
60 SET WINDOW 0,1,0,1
70 DRAW a_pic
80 DRAW a_pic WITH SHEAR(PI/4)*SHIFT(0,0.5)
90 END

Reply to #94766

Reply to #94769×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

Another example (2023-03-28 17:45 by SHIRAISHI Kazuo #94771)

100 SET WINDOW -10,10,0,20
110 DIM m(4,4)
120 DATA 1.5, 0, 0, 0
130 DATA 0, 10, 0, -1
140 DATA 0, 0, 0, 0
150 DATA 0, 0, 0, 1.5
160 MAT READ m
170 DRAW pict1 WITH m
180 PICTURE pict1
190 DRAW grid(1,0.1)
200 SET TEXT HEIGHT 0.8
210 PLOT TEXT ,AT -1,0:"BASIC"
220 END PICTURE
230 END
Reply to #94769

Reply to #94771×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login