11(DEFINE-FILE-INFO PACKAGE "INTERLISP" READTABLE "INTERLISP" BASE 10)
22
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
44
55 :EDIT-BY "mth"
66
77 :CHANGES-TO (FNS FontTable)
88
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
1010)
1111
1212
13- (* ; "
14- Copyright (c) 1985, 1987, 2025 by Xerox Corporation.
15- ")
16-
1713(PRETTYCOMPRINT FONTSAMPLERCOMS)
1814
1915(RPAQQ FONTSAMPLERCOMS
@@ -24,7 +20,7 @@ Copyright (c) 1985, 1987, 2025 by Xerox Corporation.
2420(DEFINEQ
2521
2622(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")
2824 (LET* [[TitleFont (FONTCREATE NIL 12 'MRR 0 (OR StreamType (PRINTERTYPE Printer]
2925 (FontList (if (LISTP Fonts)
3026 else (CONS Fonts)))
@@ -60,10 +56,10 @@ Copyright (c) 1985, 1987, 2025 by Xerox Corporation.
6056
6157(FontTable
6258 [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")
6460 (* edited%: "29-Apr-87 22:36")
6561 (LET*
66- [ (Family (FONTPROP Font 'FAMILY))
62+ ( (Family (FONTPROP Font 'FAMILY))
6763 (Face (FONTPROP Font 'FACE))
6864 (Size (FONTPROP Font 'SIZE))
6965 (Title (CONCAT " " Size "pt " (L-CASE Family T)
@@ -74,25 +70,34 @@ Copyright (c) 1985, 1987, 2025 by Xerox Corporation.
7470 'DISPLAY)
7571 (NOT (EQ (IMAGESTREAMTYPE Stream)
7672 '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)))
8177 (printout T Title .I0.8 CharacterSet "Q" T)
8278 (RESETLST
8379 (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))
8691 do (MOVETO XPosition YPosition Stream)
8792 (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))
9095 do (MOVETO XPosition YPosition Stream)
9196 (PRIN1 Counter Stream)))
9297 (DRAWLINE (TIMES 0.25 InchesToPrinterUnits)
93- (TIMES 9.25 InchesToPrinterUnits)
98+ (TIMES 9.3 InchesToPrinterUnits)
9499 (TIMES 8.0 InchesToPrinterUnits)
95- (TIMES 9.25 InchesToPrinterUnits)
100+ (TIMES 9.3 InchesToPrinterUnits)
96101 (DSPSCALE NIL Stream)
97102 'PAINT Stream)
98103 (DRAWLINE (TIMES 0.6 InchesToPrinterUnits)
@@ -102,25 +107,23 @@ Copyright (c) 1985, 1987, 2025 by Xerox Corporation.
102107 (DSPSCALE NIL Stream)
103108 'PAINT Stream)
104109 (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)
107112 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
110115 do [LET ((CCode (IPLUS (ITIMES CharacterSet 256)
111116 CharacterCode)))
112117 (MOVETO XPosition YPosition Stream)
113118 (if UseDisplayFontBitmaps
114119 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))
124127 else (if (AND (NEQ CharacterCode (CHARCODE FF))
125128 (if (MEMB (IMAGESTREAMTYPE Stream)
126129 '(DISPLAY INTERPRESS))
@@ -165,8 +168,7 @@ Copyright (c) 1985, 1987, 2025 by Xerox Corporation.
165168(FILESLOAD (LOADCOMP)
166169 FONT)
167170)
168- (PUTPROPS FONTSAMPLER COPYRIGHT ("Xerox Corporation" 1985 1987 2025))
169171(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 ))
171173)))
172174STOP
0 commit comments