Better handle half-width Asian characters when CID Font widths table contains overlapping entries
Steps to reproduce:
-
Using Poppler 24.05.0, convert the attached document cid-font-overlapping-widths.pdf to PNG
-
Expected: digits from 0 through 9 are seen on the page (similarly to how Adobe Reader and Chrome display it)!* Actual: digits from 0 though 4 are seen on the page
The file is not quite well formed: its font widths table has overlapping entries: entry for character 32 is followed by entries for characters 0...166. Although the spec does not explicitly prohibit this, this is surely a flaw in the creator application. However, Adobe and Chrome render such files properly.