1
1
(DEFINE-FILE-INFO PACKAGE "INTERLISP" READTABLE "INTERLISP" BASE 10)
2
2
3
- (FILECREATED " 2 -Feb-2025 22:56:24 " {DSK}<home>matt>Interlisp>medley>lispusers>FONTSAMPLER.;2 8799
3
+ (FILECREATED " 3 -Feb-2025 20:08:40 " {DSK}<home>matt>Interlisp>medley>lispusers>FONTSAMPLER.;10 8777
4
4
5
5
:EDIT-BY "mth"
6
6
7
7
:CHANGES-TO (FNS FontTable)
8
8
9
- :PREVIOUS-DATE "29-Apr-87 22:43:49 " {DSK}<home>matt>Interlisp>medley>lispusers>FONTSAMPLER.;1
9
+ :PREVIOUS-DATE " 3-Feb-2025 13:06:38 " {DSK}<home>matt>Interlisp>medley>lispusers>FONTSAMPLER.;7
10
10
)
11
11
12
12
13
- (* ; "
14
- Copyright (c) 1985, 1987, 2025 by Xerox Corporation.
15
- ")
16
-
17
13
(PRETTYCOMPRINT FONTSAMPLERCOMS)
18
14
19
15
(RPAQQ FONTSAMPLERCOMS
@@ -24,7 +20,7 @@ Copyright (c) 1985, 1987, 2025 by Xerox Corporation.
24
20
(DEFINEQ
25
21
26
22
(FontSample
27
- [LAMBDA (Fonts CharacterSets Printer StreamType) (* edited%: "29-Apr-87 22:03")
23
+ [LAMBDA (Fonts CharacterSets Printer StreamType) (* edited%: "29-Apr-87 22:03")
28
24
(LET* [[TitleFont (FONTCREATE NIL 12 'MRR 0 (OR StreamType (PRINTERTYPE Printer]
29
25
(FontList (if (LISTP Fonts)
30
26
else (CONS Fonts)))
@@ -60,10 +56,10 @@ Copyright (c) 1985, 1987, 2025 by Xerox Corporation.
60
56
61
57
(FontTable
62
58
[LAMBDA (Font CharacterSet Stream FormFeed TitleFont InchesToPrinterUnits)
63
- (* ; "Edited 2 -Feb-2025 22:50 by mth")
59
+ (* ; "Edited 3 -Feb-2025 20:07 by mth")
64
60
(* edited%: "29-Apr-87 22:36")
65
61
(LET*
66
- [ (Family (FONTPROP Font 'FAMILY))
62
+ ( (Family (FONTPROP Font 'FAMILY))
67
63
(Face (FONTPROP Font 'FACE))
68
64
(Size (FONTPROP Font 'SIZE))
69
65
(Title (CONCAT " " Size "pt " (L-CASE Family T)
@@ -74,25 +70,34 @@ Copyright (c) 1985, 1987, 2025 by Xerox Corporation.
74
70
'DISPLAY)
75
71
(NOT (EQ (IMAGESTREAMTYPE Stream)
76
72
'DISPLAY]
77
- (CharSetInfo (\GETCHARSETINFO CharacterSet Font T) )
78
- (CharSetAscent (fetch (CHARSETINFO CHARSETASCENT) of CharSetInfo))
79
- (CharSetDescent (fetch (CHARSETINFO CHARSETDESCENT) of CharSetInfo ))
80
- (CharSetRelativeDescent (FQUOTIENT CharSetDescent (IPLUS CharSetAscent CharSetDescent]
73
+ [RelativeDescent (FQUOTIENT (FONTPROP Font 'DESCENT )
74
+ (FONTPROP Font 'HEIGHT]
75
+ (XCellSpacing (TIMES 0.45 InchesToPrinterUnits ))
76
+ (YCellSpacing (TIMES 0.5 InchesToPrinterUnits)))
81
77
(printout T Title .I0.8 CharacterSet "Q" T)
82
78
(RESETLST
83
79
(RESETSAVE (RADIX 8))
84
- (for XPosition from (TIMES 0.65 InchesToPrinterUnits) by (TIMES 0.45 InchesToPrinterUnits)
85
- as Counter from 0 to 15 bind (YPosition _ (TIMES 9.5 InchesToPrinterUnits))
80
+ (MOVETO (FTIMES 0.75 InchesToPrinterUnits)
81
+ (FTIMES 10 InchesToPrinterUnits)
82
+ Stream)
83
+ (DSPFONT TitleFont Stream)
84
+ (printout Stream Title .I0.8 CharacterSet)
85
+ (DSPYPOSITION (PLUS (DSPYPOSITION NIL Stream)
86
+ (TIMES -0.4 (FONTHEIGHT TitleFont)))
87
+ Stream)
88
+ (printout Stream "8")
89
+ (for XPosition from (TIMES 0.75 InchesToPrinterUnits) by XCellSpacing as Counter
90
+ from 0 to 15 bind (YPosition _ (TIMES 9.5 InchesToPrinterUnits))
86
91
do (MOVETO XPosition YPosition Stream)
87
92
(PRIN1 Counter Stream))
88
- (for YPosition from (TIMES 9 InchesToPrinterUnits) by (TIMES -0.5 InchesToPrinterUnits)
89
- as Counter from 0 to 240 by 16 bind (XPosition _ (TIMES 0.25 InchesToPrinterUnits))
93
+ (for YPosition from (TIMES 9 InchesToPrinterUnits) by (MINUS YCellSpacing) as Counter
94
+ from 0 to 240 by 16 bind (XPosition _ (TIMES 0.25 InchesToPrinterUnits))
90
95
do (MOVETO XPosition YPosition Stream)
91
96
(PRIN1 Counter Stream)))
92
97
(DRAWLINE (TIMES 0.25 InchesToPrinterUnits)
93
- (TIMES 9.25 InchesToPrinterUnits)
98
+ (TIMES 9.3 InchesToPrinterUnits)
94
99
(TIMES 8.0 InchesToPrinterUnits)
95
- (TIMES 9.25 InchesToPrinterUnits)
100
+ (TIMES 9.3 InchesToPrinterUnits)
96
101
(DSPSCALE NIL Stream)
97
102
'PAINT Stream)
98
103
(DRAWLINE (TIMES 0.6 InchesToPrinterUnits)
@@ -102,25 +107,23 @@ Copyright (c) 1985, 1987, 2025 by Xerox Corporation.
102
107
(DSPSCALE NIL Stream)
103
108
'PAINT Stream)
104
109
(CL:UNLESS UseDisplayFontBitmaps (DSPFONT Font Stream))
105
- (for YPosition from (TIMES 9 InchesToPrinterUnits) by (TIMES -0.5 InchesToPrinterUnits)
106
- as YCounter from 0 to 15 bind (CharacterCode _ 0)
110
+ (for YPosition from (TIMES 9 InchesToPrinterUnits) by (MINUS YCellSpacing) as YCounter
111
+ from 0 to 15 bind (CharacterCode _ 0)
107
112
do
108
- (for XPosition from (TIMES 0.75 InchesToPrinterUnits) by (TIMES 0.45 InchesToPrinterUnits)
109
- as XCounter from 0 to 15
113
+ (for XPosition from (TIMES 0.75 InchesToPrinterUnits) by XCellSpacing as XCounter
114
+ from 0 to 15
110
115
do [LET ((CCode (IPLUS (ITIMES CharacterSet 256)
111
116
CharacterCode)))
112
117
(MOVETO XPosition YPosition Stream)
113
118
(if UseDisplayFontBitmaps
114
119
then (LET* ((Glyph (GETCHARBITMAP CCode Font))
115
- (ImSize (BITMAPIMAGESIZE Glyph NIL Stream)))
116
- (BITBLT Glyph 0 0 Stream XPosition (- YPosition (TIMES (CDR ImSize)
117
-
118
- CharSetRelativeDescent
119
- ))
120
- (CAR ImSize)
121
- (CDR ImSize)
122
- 'INPUT
123
- 'REPLACE))
120
+ (ImSize (BITMAPIMAGESIZE Glyph NIL Stream))
121
+ (ImWidth (CAR ImSize))
122
+ (ImHeight (CDR ImSize)))
123
+ (BITBLT Glyph 0 0 Stream XPosition (FDIFFERENCE YPosition
124
+ (FTIMES ImHeight
125
+ RelativeDescent))
126
+ ImWidth ImHeight 'INPUT 'REPLACE))
124
127
else (if (AND (NEQ CharacterCode (CHARCODE FF))
125
128
(if (MEMB (IMAGESTREAMTYPE Stream)
126
129
'(DISPLAY INTERPRESS))
@@ -165,8 +168,7 @@ Copyright (c) 1985, 1987, 2025 by Xerox Corporation.
165
168
(FILESLOAD (LOADCOMP)
166
169
FONT)
167
170
)
168
- (PUTPROPS FONTSAMPLER COPYRIGHT ("Xerox Corporation" 1985 1987 2025))
169
171
(DECLARE%: DONTCOPY
170
- (FILEMAP (NIL (706 8566 (FontSample 716 . 2171 ) (FontSampleFaked 2173 . 2982 ) (FontTable 2984 . 8564 ))
172
+ (FILEMAP (NIL (645 8614 (FontSample 655 . 2106 ) (FontSampleFaked 2108 . 2917 ) (FontTable 2919 . 8612 ))
171
173
)))
172
174
STOP
0 commit comments