Skip to content

Rmk103 font and related code updates #2216

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 18 commits into
base: master
Choose a base branch
from

Conversation

rmkaplan
Copy link
Contributor

This includes changes to cleanup and simplify (somewhat) the interface and some of the internals of the FONT architecture. It also includes MEDLEYFONTFORMAT, the implementation of the new read/writable format for display and other device fonts. The changes to FONT are documented in docs/internal/FONTCODECHANGES.TEDIT, the document for MEDLEYFONTFORMAT is in docs/internal/MEDLEYFONTFORMAT.TEDIT.

Around this central core there are a bunch of files with small changes for compatibility with some of the font changes. E.g. the recursion surrounding the validation of font attributes has been flattened out, and almost all calls to \COERCEFONTDESC have been eliminated (addressing #2100).

And the loadup sequences and have been adjusted and a few functions have been moved so that medley-format fonts can be included in the MAKEINIT.

This PR includes only 2 medley-format fonts, for GACHA10 and HELVETICA10. GACHA10 is created in the MAKEINIT. HEVETICA10 a little later, when MENU is loaded. I've included them here to test that everything hangs together.

(Separately, I have created medley-format fonts for all the display fonts, but I want to release those in a separate PR after this code has settled down. The new NS fonts will be MCCS-encoded, and that will require some other adjustments.)

@pamoroso
Copy link
Contributor

I checked out this PR on Linux Mint 22.1 Cinnamon and the apps sysout fails with the error File not found: MCCS error during GREET...:

paolo@lispmachine:~/medley/medley$ ./scripts/loadup-all.sh -apps
>>>>> START loadup-init
"/home/paolo/bin/lde" "/home/paolo/medley/medley/internal/loadups/starter.sysout" -id "loadup_init_1" -title "Medley::loadup_init_1" -g 1024x768 -sc 1024x768 -noscroll
MEDLEYDIR: "/home/paolo/medley/medley"
LOGINDIR: "/home/paolo/medley/medley/loadups/build/logindir"
GREET FILE: "/home/paolo/medley/medley/loadups/build/loadup-init.init"
REM.CM FILE: ""
VMEM FILE: "/home/paolo/medley/medley/loadups/build/logindir/vmem/lisp_loadup_init_1.virtualmem"
apps-sysout-error

I'm attaching the loadups directory: loadups.zip

The Medley head:

commit b8b210803e0104b7e43a28a39bbaae42679a5cdb (HEAD -> rmk103--Font-and-related-code-updates, origin/rmk103--Font-and-related-code-updates)

The Maiko head on master:

commit fc90838ad84a152bfc70ce1d091b13166d0bf0d5

@rmkaplan
Copy link
Contributor Author

rmkaplan commented Jul 17, 2025 via email

@pamoroso
Copy link
Contributor

With loadup-full.sh I get the same error File not found: MCCS error during GREET...:

paolo@lispmachine:~/medley/medley$ ./scripts/loadup-full.sh 
>>>>> START loadup-init
"/home/paolo/bin/lde" "/home/paolo/medley/medley/internal/loadups/starter.sysout" -id "loadup_init_1" -title "Medley::loadup_init_1" -g 1024x768 -sc 1024x768 -noscroll
MEDLEYDIR: "/home/paolo/medley/medley"
LOGINDIR: "/home/paolo/medley/medley/loadups/build/logindir"
GREET FILE: "/home/paolo/medley/medley/loadups/build/loadup-init.init"
REM.CM FILE: ""
VMEM FILE: "/home/paolo/medley/medley/loadups/build/logindir/vmem/lisp_loadup_init_1.virtualmem"
loadup-full-error

The loadups directory: loadups.zip

(These were for the next phase)
@rmkaplan
Copy link
Contributor Author

rmkaplan commented Jul 17, 2025 via email

@pamoroso
Copy link
Contributor

I updated to commit f93cc9e and the apps sysout failed with the error File not found: MEDLEYFONTFORMATerror during GREET...

paolo@lispmachine:~/medley/medley$ ./scripts/loadup-all.sh -apps
>>>>> START loadup-init
"/home/paolo/bin/lde" "/home/paolo/medley/medley/internal/loadups/starter.sysout" -id "loadup_init_1" -title "Medley::loadup_init_1" -g 1024x768 -sc 1024x768 -noscroll
MEDLEYDIR: "/home/paolo/medley/medley"
LOGINDIR: "/home/paolo/medley/medley/loadups/build/logindir"
GREET FILE: "/home/paolo/medley/medley/loadups/build/loadup-init.init"
REM.CM FILE: ""
VMEM FILE: "/home/paolo/medley/medley/loadups/build/logindir/vmem/lisp_loadup_init_1.virtualmem"
loadup-all-error

The loadups directory: loadups.zip

@rmkaplan
Copy link
Contributor Author

rmkaplan commented Jul 17, 2025 via email

@nbriggs
Copy link
Contributor

nbriggs commented Jul 17, 2025

OK, loadups work with the MEDLEYFONTFORMAT now present.
lisp.sysout is now about 1.5% bigger and a full loadup takes about 10% longer than it used to. Not sure why.

Untracked files don't get deleted by git when you switch between branches, so if there's a new file that you forgot to commit then changing branches will leave it there and presumably GITFNS will think it's also in the branch it switched to. If a file was committed in one branch and then you switch to a branch where it doesn't exist then it will get deleted. I don't know that treating things as {unix} would help -- at least not that problem.

@pamoroso
Copy link
Contributor

I updated to commit 51d2cc6 and the apps loadup failed with the error (the Medley window was closed):

paolo@lispmachine:~/medley/medley$ ./scripts/loadup-all.sh -apps
>>>>> START loadup-init
"/home/paolo/bin/lde" "/home/paolo/medley/medley/internal/loadups/starter.sysout" -id "loadup_init_1" -title "Medley::loadup_init_1" -g 1024x768 -sc 1024x768 -noscroll
MEDLEYDIR: "/home/paolo/medley/medley"
LOGINDIR: "/home/paolo/medley/medley/loadups/build/logindir"
GREET FILE: "/home/paolo/medley/medley/loadups/build/loadup-init.init"
REM.CM FILE: ""
VMEM FILE: "/home/paolo/medley/medley/loadups/build/logindir/vmem/lisp_loadup_init_1.virtualmem"
+++++ SUCCESS +++++

[...]

>>>>> START loadup-apps-from-full
"/home/paolo/bin/lde" "/home/paolo/medley/medley/loadups/build/full.sysout" -id "loadup_apps_from_full_1" -title "Medley::loadup_apps_from_full_1" -g 1024x768 -sc 1024x768 -noscroll
MEDLEYDIR: "/home/paolo/medley/medley"
LOGINDIR: "/home/paolo/medley/medley/loadups/build/logindir"
GREET FILE: "/home/paolo/medley/medley/greetfiles/NOGREET"
REM.CM FILE: "/home/paolo/medley/medley/loadups/build/loadup-apps-from-full.cm"
VMEM FILE: "/home/paolo/medley/medley/loadups/build/logindir/vmem/lisp_loadup_apps_from_full_1.virtualmem"
+++++ SUCCESS +++++
..... files created .....
-rw-rw-r-- 1 paolo paolo 12692 Jul 17 19:59 /home/paolo/medley/medley/loadups/build/apps.dribble
-rw-rw-r-- 1 paolo paolo 13494272 Jul 17 19:59 /home/paolo/medley/medley/loadups/build/apps.sysout
<<<<< END loadup-apps-from-full

Added RDSYS.~40~ to library
Linked RDSYS to RDSYS.~40~ in library
Added RDSYS.LCOM.~40~ to library
Linked RDSYS.LCOM to RDSYS.LCOM.~40~ in library
Added lisp.sysout to loadups
Added lisp.dribble to loadups
Added full.sysout to loadups
Added full.dribble to loadups
Added apps.sysout to loadups
Added apps.dribble to loadups
>>>>> START loadup-aux
"/home/paolo/bin/lde" "/home/paolo/medley/medley/loadups/full.sysout" -id "loadup_aux_1" -title "Medley::loadup_aux_1" -g 1024x768 -sc 1024x768 -noscroll
MEDLEYDIR: "/home/paolo/medley/medley"
LOGINDIR: "/home/paolo/medley/medley/loadups/build/logindir"
GREET FILE: "/home/paolo/medley/medley/greetfiles/NOGREET"
REM.CM FILE: "/home/paolo/medley/medley/loadups/build/loadup-aux.cm"
VMEM FILE: "/home/paolo/medley/medley/loadups/build/logindir/vmem/lisp_loadup_aux_1.virtualmem"
----- FAILURE loadup-aux-----
..... files created .....
<<<<< END loadup-aux

----- loadup-all: FAILURE -----

The dribble files: loadups-dribble.zip

@rmkaplan
Copy link
Contributor Author

rmkaplan commented Jul 17, 2025 via email

@nbriggs
Copy link
Contributor

nbriggs commented Jul 17, 2025

It's failing the -aux part because:

{DSK}<Users>briggs>Projects>medley>sources>FILESETS.;1
File created 17-Jul-2025 09:32:58
FILESETSCOMS
File not found: MCCS

4> 
        (IL:LOGOUT T 1)

@rmkaplan
Copy link
Contributor Author

rmkaplan commented Jul 17, 2025 via email

@nbriggs
Copy link
Contributor

nbriggs commented Jul 17, 2025

The space increase is reproducible, the time for a ./loadup -f isn't consistent - there may be something else going on with the timing.

@rmkaplan
Copy link
Contributor Author

rmkaplan commented Jul 17, 2025 via email

@rmkaplan
Copy link
Contributor Author

rmkaplan commented Jul 17, 2025 via email

@rmkaplan
Copy link
Contributor Author

rmkaplan commented Jul 17, 2025 via email

@nbriggs
Copy link
Contributor

nbriggs commented Jul 17, 2025

Works for me now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants