Skip to content

How to compare fonts? (HPRINT fails) #483

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
masinter opened this issue Sep 15, 2021 · 4 comments
Open

How to compare fonts? (HPRINT fails) #483

masinter opened this issue Sep 15, 2021 · 4 comments
Labels
help wanted Extra attention is needed

Comments

@masinter
Copy link
Member

I was looking for a way to compare two fonts (one read from hevetica12.strike in AltoFonts and one from helvetica12-mrr-0 in displayfonts>c0>. After patching \fontfilename.old (and display-font-name-map which looks very dossy), adding 'strike to displayfontextensions, setting displayfontdiectories in various orders

I was able to read both using (\readdisplayfontfile 'helvetica 12 'mrr 0 'display 0)

I thought I would try HPRINT to see any diffs, but HPRINT produces output like this

image

Notice the odd linebreaks when printing the bitmap.

@masinter
Copy link
Member Author

clue: if HPRINT is printing to a non-random-accessible stream, it opens a {NoDirCore} stream, prints to that, and then copybytes .

@masinter
Copy link
Member Author

pr #506 fixes the EOL problem but the other problems (how to compare font files? HPRINT on DEFAULTFONT fails) remain

@masinter masinter changed the title HPRINT doesn't EOL correctly How to compare fonts? (HPRINT fails) Sep 28, 2021
@masinter masinter added the font label Oct 24, 2021
@masinter
Copy link
Member Author

I want to examine the fonts we have, not sure what is what. We have some lispusers packages

  • BIGGER-FONT (no doc) seems to modify FONTSET(BIGGER) to also change the AR button font. Recommend delete.
  • EDITFONT (no doc) seems to be an editor that lets you edit a display font. Includes READSTRILEFONTFILE and WRITESTRIKEFONTFILE. Write some documentation.
    image
    invoke (EDITFONT (FONTCREATE 'TERMINAL 10))
  • FONTDECLS: some declarations from elsewhere, unreferenced. Delete.
    image
  • FONTSAMPLER -- Can be used to show Displayfonts
    image
  • NOVAFONT -- read fonts from Viewpoint. Obsolete; if we get new fonts it will be from modern sources.
    image
  • PSCFONT-FIX-FILENAME -- junk utility. Delete.
  • READAPPLEFONT -- useful?
    image
  • READDISPLAYFONT
    image
  • SFFONT -- NO docs, compiled version -- seems to be a spline font reader(!) not compiled, needs "IRISSTREAM"?
  • library/FONTSAMPLE -- no docs -- a different font sampler -- shows some characters but for multiple fonts so just abcdefghijkl in lower and upper case for all of the fonts

Plus files in the loadups::

  • sources/AFONT
  • sources/FONT
  • sources/FONTPROFILE

@masinter masinter added the help wanted Extra attention is needed label Oct 27, 2021
@masinter
Copy link
Member Author

I wasn't sure how to make progress on the FONT issues, but cataloging what we have seemed like a start.

What to do next?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
Status: No status
Development

No branches or pull requests

1 participant