pyx-project / pyx

Repository of PyX, a Python package for the creation of PostScript, PDF, and SVG files.
https://pyx-project.org/
GNU General Public License v2.0
109 stars 18 forks source link

Unrecognized floating point number when parsing afm fonts(DejaVuSans.afm) #29

Closed world1tree closed 3 years ago

world1tree commented 3 years ago
UnderlinePosition -41,5039
UnderlineThickness 43,9453

According to https://adobe-type-tools.github.io/font-tech-notes/pdfs/5004.AFM_Spec.pdf (page 10&14). We expect this should be an integer or floating point number, but here it contains a comma.

joerg-lehmann commented 3 years ago

Thanks for reporting and providing a pull request.

After some delibartion and realizing that DejaVuSans most probably will not be fixed, I commited a slightly modified version with commit 422341b0b1183e054ef08e5a2ab6b7be85949823 .