ArtifexSoftware / urw-base35-fonts

Repo for URW++ base 35 font set
Other
95 stars 17 forks source link

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

Open seehuhn opened 8 months ago

seehuhn commented 8 months ago

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 commented 8 months ago

The same problem appears with the uni00A0 and uni2002 glyphs.