mozilla/pdf.js — pull request #2634 by Pomax (2013-01-30 16:16:52+00:00)
Title: changed the type1font cff wrapping to use offsets 391,392... instead of 0,1... for pointing to strings in the String INDEX

CFF fonts have a predefined string dictionary with 391 strings that don't need to be encoded because they apply to all CFF, so custom strings in a String INDEX after the Top DICT are referenced by SID 391 and up. However, the Type1Font .wrap function sets up the header with name/version/etc SID's pointing to the index positions in the string array (0,1,2,...) rather than the position after offsetting for the 391 predefined strings, as 391,392,393 etc.

This pull request changes the offsets so that cff header.name, .version, etc have the correct strings rather than the first five predefined strings from the Type2 Charstring list (.notdef, space, etc)