|
1 | 1 | (DEFINE-FILE-INFO PACKAGE "INTERLISP" READTABLE "INTERLISP" BASE 10) |
2 | 2 |
|
3 | | -(FILECREATED "26-Dec-2023 21:17:15" {WMEDLEY}<lispusers>NSDISPLAYSIZES.;3 8449 |
| 3 | +(FILECREATED " 8-Apr-2024 11:48:01" {WMEDLEY}<lispusers>NSDISPLAYSIZES.;4 8919 |
4 | 4 |
|
5 | 5 | :EDIT-BY rmk |
6 | 6 |
|
7 | 7 | :CHANGES-TO (FNS NSDISPLAYSIZE) |
8 | 8 |
|
9 | | - :PREVIOUS-DATE "24-Dec-2023 13:50:41" {WMEDLEY}<lispusers>NSDISPLAYSIZES.;2) |
| 9 | + :PREVIOUS-DATE "26-Dec-2023 21:17:15" {WMEDLEY}<lispusers>NSDISPLAYSIZES.;3) |
10 | 10 |
|
11 | 11 |
|
12 | 12 | (PRETTYCOMPRINT NSDISPLAYSIZESCOMS) |
|
30 | 30 | (DEFINEQ |
31 | 31 |
|
32 | 32 | (NSDISPLAYSIZE |
33 | | - [LAMBDA (FAMILY SIZE FACE EXTENSION) (* ; "Edited 26-Dec-2023 21:15 by rmk") |
| 33 | + [LAMBDA (FAMILY SIZE FACE EXTENSION) (* ; "Edited 8-Apr-2024 11:47 by rmk") |
| 34 | + (* ; "Edited 26-Dec-2023 21:15 by rmk") |
34 | 35 | (* ; "Edited 24-Dec-2023 13:49 by rmk") |
35 | 36 | (* ; "Edited 14-Sep-96 09:32 by rmk:") |
36 | 37 | (* ; "Edited 16-Nov-95 10:08 by ") |
37 | 38 | (* ; "Edited 5-Mar-93 18:12 by kaplan") |
38 | 39 | (* ; "Edited 15-Jan-87 15:22 by bvm:") |
39 | 40 |
|
| 41 | + (* ;; "What we really want for small NS font sizes (12 or below) is the next larger existing font, not a built-in knowledge here of what exists.") |
| 42 | + |
40 | 43 | (* ;; "Returns size that we would prefer to see the font of requested family, size, face, extension. Used to make bigger ns display fonts than you would get by default. Don't do it for small screens, as on DOS and laptops.") |
41 | 44 |
|
42 | 45 | (DECLARE (GLOBALVARS DISPLAYFONTEXTENSIONS NSFONTFAMILIES)) |
|
52 | 55 | NIL))) |
53 | 56 | ((CL:MEMBER FAMILY NSFONTFAMILIES :TEST 'STRING-EQUAL) |
54 | 57 | (* ; "Large screen, enlarge NS fonts") |
55 | | - (AND (SELECTQ SIZE |
56 | | - (12 (COND |
57 | | - ((CL:MEMBER FAMILY '(TERMINAL TITAN) |
58 | | - :TEST |
59 | | - 'STRING-EQUAL) (* ; "Until these exist in size 14") |
60 | | - 12) |
61 | | - (T 14))) |
62 | | - (10 12) |
63 | | - (8 10) |
64 | | - (6 8) |
65 | | - NIL))) |
| 58 | + (SELECTQ (U-CASE (MKATOM FAMILY)) |
| 59 | + (TERMINAL (* ; "14 doesn't exist, oh well.") |
| 60 | + (CL:IF (ILEQ SIZE 10) |
| 61 | + (IPLUS SIZE 2) |
| 62 | + SIZE)) |
| 63 | + (TITAN (SELECTQ SIZE |
| 64 | + (6 9) |
| 65 | + (9 10) |
| 66 | + (10 12) |
| 67 | + (CL:IF (ILESSP SIZE 6) |
| 68 | + 6 |
| 69 | + SIZE))) |
| 70 | + (CL:IF (ILEQ SIZE 12) |
| 71 | + (IPLUS SIZE 2) |
| 72 | + SIZE))) |
66 | 73 | ((AND NIL (CL:MEMBER EXTENSION INTERPRESSFONTEXTENSIONS :TEST 'STRING-EQUAL) |
67 | 74 | (STRING-EQUAL FAMILY 'SYMBOL)) (* ; |
68 | 75 | "Fake NS size on Interpress printing, even tho display fonts don't exist") |
|
160 | 167 | (VKBD.FIX.FONT) |
161 | 168 | ) |
162 | 169 | (DECLARE%: DONTCOPY |
163 | | - (FILEMAP (NIL (1522 6781 (NSDISPLAYSIZE 1532 . 4079) (NS\FONTFILENAME 4081 . 4322) ( |
164 | | -NS\FONTFILENAME.OLD 4324 . 4573) (PURGENSFONTS 4575 . 6779)) (6993 8031 (VKBD.FIX.FONT 7003 . 8029)))) |
| 170 | + (FILEMAP (NIL (1522 7251 (NSDISPLAYSIZE 1532 . 4549) (NS\FONTFILENAME 4551 . 4792) ( |
| 171 | +NS\FONTFILENAME.OLD 4794 . 5043) (PURGENSFONTS 5045 . 7249)) (7463 8501 (VKBD.FIX.FONT 7473 . 8499)))) |
165 | 172 | ) |
166 | 173 | STOP |
0 commit comments