Skip to content
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

Wrong bounding box information for "space" in afm files #48

Open
seehuhn opened this issue Jan 30, 2024 · 1 comment
Open

Wrong bounding box information for "space" in afm files #48

seehuhn opened this issue Jan 30, 2024 · 1 comment

Comments

@seehuhn
Copy link

seehuhn commented Jan 30, 2024

Several of the AFM files list a non-empty bounding box for the "space" character. For example, NimbusRoman-Regular.afm has the following:

C 32 ; WX 250 ; N space ; B 125 0 125 0 ;

In contrast, the AFM specification explains the use of B as follows:

... If a character makes no marks on the page (for example, the space character), this field reads B 0 0 0 0 ...

I believe that B 125 0 125 0 above should be replaced with B 0 0 0 0 (and similar for the other fonts).

@seehuhn
Copy link
Author

seehuhn commented Jan 30, 2024

The same problem appears with the uni00A0 and uni2002 glyphs.

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

No branches or pull requests

1 participant