Skip to content

READ-BDF/BDF-TO-FONTDESCRIPTOR fails on FontForge generated BDF of macOS Monaco font #2107

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

Closed
nbriggs opened this issue Apr 17, 2025 · 1 comment · Fixed by #2108
Closed
Assignees
Labels
bug Something isn't working (as per documentation)

Comments

@nbriggs
Copy link
Contributor

nbriggs commented Apr 17, 2025

Describe the bug
After reading the BDF for Monaco, calling BDF::BDF-TO-FONTDESCRIPTOR fails with a type-mismatch error, "(-1) is not a number" when (-1) was passed to IL:UNICODE-EXTEND-TRANSLATION, called from UNICODE-UNMAPPED, called from IL:UTOXCODE?

To Reproduce
Steps to reproduce the behavior:

Used FontForge to load macOS /System/Library/Fonts/Monaco.ttf and write it out, with default settings, creating amongst other sizes, Monaco-10.bdf

(SETQ MONACO10 (BDF:READ-BDF "{dsk}<~>Lisp>Monaco-10.bdf"))
(BDF:WRITE-BDF-TO-DISPLAYFONT-FILES MONACO10 "{dsk}<~>Lisp>" NIL NIL 'MONACO 10 'MRR 0 'DISPLAY)

Expected behavior
I expected it to produce a Monaco 10 display font file.

@nbriggs
Copy link
Contributor Author

nbriggs commented Apr 17, 2025

Monaco-10.bdf.gz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working (as per documentation)
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants