In the PhysicalFonts class, the static method addPhysicalFont(URL) can't correctly load fonts with uppercase letters on case-sensitive filesystems.
- Code: Select all
eg. file:/usr/share/fonts/type1/mathml/Symbol.pfb
The FontInfoFinder correctly reads the EmbedFontInfo of the .pfb and associated .afm file.
addPhysicalFont() later checks (again) whether the .afm file exists, however it converts the path to lowercase to compare extensions and then incorrectly expects to find the font file with the lowercase name. The cause is shown below at (1) and ...