I'm using DejaVu fonts from the infinality-bundle-fonts repo on Arch, and they cause Matplotlib (a Python plotting library) to show this error for each file:
Value error parsing header in AFM: UnderlinePosition -41,5039
Value error parsing header in AFM: UnderlineThickness 43,9453
This problem has been reported to the Matplotlib issue tracker (https://github.com/matplotlib/matplotlib/pull/2497), but seems to be caused by the way floats are stored in AFM files. Apparently, the AFM spec calls for dots as decimal separators, and the DejaVu fonts have commas instead:
A number can be either a real number or an integer, and signed or unsigned, that is, it may or may not contain a decimal point or a leading minus sign
I'm using DejaVu fonts from the
infinality-bundle-fonts
repo on Arch, and they cause Matplotlib (a Python plotting library) to show this error for each file:This problem has been reported to the Matplotlib issue tracker (https://github.com/matplotlib/matplotlib/pull/2497), but seems to be caused by the way floats are stored in AFM files. Apparently, the AFM spec calls for dots as decimal separators, and the DejaVu fonts have commas instead: