167 Commits (1b5940edd2f167f026d1ba209a4c68204a777b9f)

Author SHA1 Message Date
Jonas Jenwald ee0d522187 Use `adjustWidths` for TrueType fonts if we handle them as OpenType (issue 5027, issue 5084, issue 6556, bug 1204903) 10 years ago
Jonas Jenwald 4810b7b8fc Fix the `charCodeOf` method in `IdentityToUnicodeMap` in order to prevent text selection from breaking 10 years ago
Brendan Dahl 87762afec4 Remove glyph id's outside the range of valid glyphs. 10 years ago
Manas a2ba1b8189 Uses editorconfig to maintain consistent coding styles 10 years ago
Jonas Jenwald ff64ef0243 Prevent `readCmapTable` from failing if the `cmap` is missing in TrueType fonts 10 years ago
Yury Delendik cc5bc18728 Fixes incorrect PDF file font metrics. 10 years ago
Yury Delendik fa46b73c47 Better spacing in text layer. 10 years ago
Jonas Jenwald 29a1cdb6a6 Only choose a (3, 1) cmap table for TrueType fonts that have an encoding specified (issue 6410) 10 years ago
Jonas Jenwald 0fb31a4a9e Fallback in `readCmapTable`, instead of using `error`, for TrueType fonts with unsupported cmap formats (bug 1200096) 10 years ago
Jonas Jenwald 99d29487ab Adjust which TrueType (3, 1) glyphs we attempt to skip mapping of (issue 6336) 10 years ago
Jonas Jenwald 0a024b5051 Adjust the heuristics used to detect OpenType font file with CFF data (bug 1186827, bug 1182130, issue 6264) 10 years ago
Yury Delendik 0787182e6f Adds more characters to the PUA range 10 years ago
Jonas Jenwald d0477302be Add a supplemental glyph map for non-embedded ArialBlack fonts (issue 5801) 10 years ago
Jonas Jenwald aa3a64e975 Skip mapping of CIDFontType2 glyphs when the font either has a |IdentityToUnicodeMap| or a |toUnicodeMap| with 65536 elements (issue 5677) 10 years ago
Jonas Jenwald 5eae3e29c5 Map missing glyphs to the notdef glyph for TrueType (3, 1) fonts (issue 6068) 10 years ago
Jonas Jenwald 6f2f0700b7 Don't map glyphs to certain problematic Thai/Lao Unicode locations (issue 5994) 10 years ago
Jonas Jenwald 6fbc5428bd Skip mapping of CIDFontType2 glyphs in fonts with a |IdentityToUnicodeMap|, unless |properties.widths| is defined for the glyph 10 years ago
Jonas Jenwald 0365baf5ab Fall back to the |defaultEncoding| when no valid "post" table is found in TrueType fonts (bug 1050040) 10 years ago
Jonas Jenwald 70b839386a Ensure that the cmap position is within the bounds of the font file in |readCmapTable| 10 years ago
Jonas Jenwald fda858ae33 Don't map glyphs to certain problematic General Punctuation Unicode locations (bug 911034) 10 years ago
Jonas Jenwald a54ec673c5 Move the checks for problematic Unicode locations from |adjustMapping| to a separate helper function 10 years ago
Levi Melamed a5159a7942 extract more accurate glpyh heights from type-3 fonts 10 years ago
Jonas Jenwald 2b1a13ba28 Don't map glyphs to Unicode position 0x0E33, i.e. Thai character SARA AM (bug1046314) 10 years ago
Jonas Jenwald e894a0a4c6 Guess CIDFontType0 subtype based on font file contents (issue 5751) 10 years ago
Jonas Jenwald f81fc9091a Correctly detect OpenType font files with CFF data 10 years ago
Jonas Jenwald 0a3341dadc Don't map glyphs to Unicode "Dotted circle" combining mark (bug 1108301) 10 years ago
Jonas Jenwald 417800a1b5 Only skip the |!isSymbolicFont| check for TrueType (3, 1) cmap tables if no previous cmap table was found (PR 5703 followup) 10 years ago
Jonas Jenwald 592890a758 Relax the |isSymbolicFont| check for TrueType (3, 1) cmap tables (issue 5701) 10 years ago
Jonas Jenwald f19a1db414 Create a IdentityToUnicodeMap in evaluator.js when toUnicode contains IdentityH/IdentityV 10 years ago
Jonas Jenwald 01e6565dd4 Try to skip mapping of missing TrueType glyphs 10 years ago
Jonas Jenwald 8174da61fb Don't skip mapping of glyphs for CIDFontType2 fonts with a CIDToGIDMap 10 years ago
Brendan Dahl cb27707277 Try to skip mapping of missing glyphs. 10 years ago
Jonas Jenwald c2c54257f2 Prevent setting |isStandardFont| to |undefined| for non-embedded fonts 10 years ago
Jonas Jenwald ad41a2d574 Add support for TrueType (0, 0) cmap tables (issue 5501 and 5574) 10 years ago
Jonas Jenwald d8b905048b Add fallback for non-embedded "Century Gothic" CIDFontType2 font (issue 4722 and bug 879561) 10 years ago
Jonas Jenwald 96a77e9d6a Add basic support for non-embedded Wingdings fonts 11 years ago
Brendan Dahl 8a536ac346 Map missing glyphs in encoding to notdef glyph. 11 years ago
Brendan Dahl 2fc5e6a9ad Don't map glyphs to unicode non breaking space. 11 years ago
Jonas Jenwald df2a4afd36 Use |toUnicode| when creating the glyph map for standard CIDFontType2 fonts without embedded font file 11 years ago
Jonas Jenwald 3c759e296a Add support for MMType1 fonts with embedded font files 11 years ago
Jonas Jenwald b16c973d9d Fix Symbol fonts without font file but with Encoding dictionary (issue 5238) 11 years ago
Jonas Jenwald 7b3f222787 Add |SpecialPUASymbols| map and refactor |mapSpecialUnicodeValues| 11 years ago
Jonas Jenwald 2d5596172c Add more cases to |mapSpecialUnicodeValues| to fix the rendering of various Symbol encoded brackets 11 years ago
Jonas Jenwald 4bda6ba1b8 Add basic support for ZapfDingbats 11 years ago
Jonas Jenwald be595d0721 Further amend GlyphMapForStandardFonts (issue 5244) 11 years ago
Jonas Jenwald cc8710acbf Workaround for TrueType fonts with exotic cmap tables (bug 1057544) 11 years ago
Jonas Jenwald ae896fc071 Avoid creating intermediate strings in sanitizeMetrics 11 years ago
Yury Delendik a2c2f81167 Use cff glyph width in the hmtx table 11 years ago
Yury Delendik 0ad323f621 Adds width at the beginning of the Type2 charstring 11 years ago
Nicholas Nethercote 61e6b576d4 Avoid an allocation in readCharCode(). 11 years ago