-
-
Notifications
You must be signed in to change notification settings - Fork 25
Handle newly encountered cases in BDF files. #2108
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
Handle newly encountered cases in BDF files. #2108
Conversation
I treat it as the _slug_ glyph, instead of the _default_ of a solid block.
Glyphs with zero width bitmap *and* zero advance (_escapement_) caused miscalculated glyph offsets into the CHARSETINFO bitmap.
Allow and ignore COMMENT lines preceding the STARTFONT line. Add error checking for extracting font FAMILY, SIZE, FACE, etc. from the BDF-FONT object. Add recommendation to documentation to write the DISPLAYFONT files to a directory separate from the system's IL:DISPLAYFONTDIRECTORIES locations.
On Linux Mint 22.1 Cinnamon I tested the changes up to edcc0e3 and now But how can I determine the name of the converted font to feed to the TEdit charlooks menu? I added the directory with the new font to |
This appears to be due to the way that font files are named. Interestingly, calling So, what should |
I don’t think it should do anything different, but the documentation should say “don’t name fonts with names that end in digits” |
…MILY, FACE, etc. Change &OPTIONAL parameters of WRITE-BDF-TO-DISPLAYFONT-FILES to &KEY to simplify calling. (No need to remember the order.) Add CHAR-SETS and WRITE-UNMAPPED parameters to WRITE-BDF-TO-DISPLAYFONT-FILES to allow some level of control of which DISPLAYFONT files are written. Updated documentation, and added warning note about font's FAMILY containing any digits.
Actually the font |
I actually pass to
Anyway I'd say READ-BDF works pretty well: |
It isn't the name of the file in the call to So, if you had entered
(Wrapping with the If then you called {COMMODORE16-MRR/743,121356}
(0 33 34 35 225 226 227 236 238 239 253)
NIL
NIL
NIL (The |
Swapping the order of 2 parameters in WRITE-BDF-TO-DISPLAYFONT-FILES. (Since they are &KEY parameters, it doesn't matter functionally, but match the documentation.)
I updated to b3796eb and regenerated the font as you explained. Now TEdit detects the font with no issues. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
Better handling of a glyph with ENCODING of -1. (From
Monaco-10.bdf
converted mac font)I treat it as the slug glyph, instead of the default of a solid block.
This addresses issue: #2014
None of my test cases had that any glyph with that ENCODING.
This same bdf file also caused corrupted bitmap glyphs due to glyphs with zero width bitmap and zero advance (escapement). This has been corrected in a separate commit.