-
-
Notifications
You must be signed in to change notification settings - Fork 24
Scrambled character bitmaps from FontSample for Monaco 10 from BDF #2109
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
Comments
This appears to be due to there being 3 characters that have 0 width of the glyph and a 0 width bitmap. I modified the BDF file to make the glyph widths = 1, and then it worked. I checked and one of my test BDF files had some 0 width glyphs, but non-0 width bitmap. These are not in char set 0, so I never looked at them with |
Also interesting - looking at the warnings generated by FontForge from loading the Monaco.ttf file:
I don't know whether these will result in a BDF file that has things in the wrong place... |
The file cu12.bdf.gz includes characters with the glyph width of 0, but bitmap width non-0. |
Glyphs with zero width bitmap *and* zero advance (_escapement_) caused miscalculated glyph offsets into the CHARSETINFO bitmap.
With the latest revision to the BDF font reader/display font writer, doing
produces a font sample with scrambled bitmaps. It looks as though the character positions from the bitmap are offset by about half a character width. The FontSample output is attached. You should be able to reproduce this with the Monaco-10.bdf that was attached to my previous issue.
The text was updated successfully, but these errors were encountered: