Contact us Heritage collections Image license terms
HOME ACL Associates Technology Literature Applications Society Software revisited
Further reading □ OverviewNo.1No.2No.3No.4No.5No.8No.9No.11No.12No.13No.14No.15No.17No.19No.21No.22No.23No.24No.25No.26No.27No.28No.29No.30No.31No.32No.33No.37No.38No.39No.40No.41No.43No.44No.45No.46No.47No.48No.49No.50No.51No.52
ACD C&A INF CCD CISD Archives Contact us Heritage archives Image license terms

Search

   
ACLLiteratureProgress ReportsSPROGS Papers
ACLLiteratureProgress ReportsSPROGS Papers
ACL ACD C&A INF CCD CISD Archives
Further reading

Overview
No.1
No.2
No.3
No.4
No.5
No.8
No.9
No.11
No.12
No.13
No.14
No.15
No.17
No.19
No.21
No.22
No.23
No.24
No.25
No.26
No.27
No.28
No.29
No.30
No.31
No.32
No.33
No.37
No.38
No.39
No.40
No.41
No.43
No.44
No.45
No.46
No.47
No.48
No.49
No.50
No.51
No.52

SPROGS Paper No 31: Scaling of text

R E Thomas

February 23 1973

1. The problem

Currently, software characters are defined on a given grid in the units of the region currently selected. A user wishing to mix text and vectors will therefore need to scale the text to suit the size of his picture. The EXPAN routine could be used for this purpose, but would prevent its further use in expanding the whole picture. Also EXPAN uses a fixed origin, whereas each character needs to be scaled relative to its starting point.

2. Possible solution

The following ideas are similar to the GROATS font height and font width.

2.1 New routines

Two new display routines are required:

      TEXPAN (EXT,EYT) 

sets X, Y expansion factors for scaling, but does not cause any expansion to take place.

      TEXSW (SWT) 

switches scaling on or off (SWT=1.0,2.0).

2.2 Use

Scaling is ignored unless a file has been entered. In this case, if scaling is switched on, any vectors drawn are expanded first by factors EXT,EYT about the current X,Y position on entry to that file (this point is already saved on the file stack). Only after scaling has occurred are EXPAN, ROTN and the region chain applied.

2.3 Changes to existing routines

EXT,EYT and SWT will be saved in COMMON block SPRG2 and also saved and restored by the file stack system. Routines TEXT and VTEXT will call TEXSW(2.0) on entry and TEXSW(1.0) on exit.

Initially, EXT=EYT=SWT=1.0. Note that a user can use this scaling facility on any file.

⇑ Top of page
© Chilton Computing and UKRI Science and Technology Facilities Council webmaster@chilton-computing.org.uk
Our thanks to UKRI Science and Technology Facilities Council for hosting this site