199 Commits (bd47440e799a4e769b38566ffd54cf390c22a17e)

Author SHA1 Message Date
Yury Delendik 32ce369d88 Fixes some static analysis warnings and recommendations 9 years ago
Yury Delendik 118b71925c Forces UMD header to have relative path and extension for CommonJS. 9 years ago
Jonas Jenwald ef551e8266 Extract `Type1Parser` from fonts.js 9 years ago
Jonas Jenwald b961e1d21b Extract `CFFParser` from fonts.js (issue 6777) 9 years ago
Jonas Jenwald 05cf709f8e Parse Type1 font files to determine the various `Length{n}` properties, instead of trusting the PDF file (issue 5686, issue 3928) 9 years ago
Jonas Jenwald c40df8a393 Make `Type1Font` more class-like, by adding closure 9 years ago
Yury Delendik bda5e6235e Removes global PDFJS usage from the src/core/. 9 years ago
Jonas Jenwald d78fae0181 Ensure that TrueType font tables have `uint32` checksums 9 years ago
Manas f6d28ca323 Refactors CMapFactory.create to make it async 9 years ago
Jonas Jenwald cd2bd057ab Refactor the building of `toFontChar` for non-embedded fonts 9 years ago
Jonas Jenwald dfe9015a43 Convert `uniXXXX` glyph names to proper ones when building the `charCodeToGlyphId` map for TrueType fonts (bug 1132849, issue 6893, issue 6894) 9 years ago
Preetham Mysore be1e12dbcb Fix for descent calculation while reading font hhea headers 9 years ago
Brendan Dahl 6e1d131384 For CIDFontType2 use CID as glyph ID when missing CID to GID map. 9 years ago
Brendan Dahl ff87f3fb86 Only draw glyphs on canvas if they are in the font or the font file is missing. 9 years ago
Jonas Jenwald 505f15f221 Avoid accidentally getting the entire font file in `readNameTable` (issue 7020) 9 years ago
Brendan Dahl 02331f6e33 Make type 1 font program decryption faster. 9 years ago
Yury Delendik 2edf2792dc Replaces literal {} created lookup tables with Object.create 9 years ago
Yury Delendik 55a201d92d Lazify NormalizedUnicodes 9 years ago
Yury Delendik d0738d7e24 Lazify stdFontMap, serifFonts, GlyphMapForStandardFonts 9 years ago
Yury Delendik 1a9a665adf Refactor Encodings 9 years ago
Yury Delendik 4ef20de429 Lazify GlyphsUnicode. 9 years ago
Jonas Jenwald 4855d4cc9f Map missing glyphs to the `notdef` glyph for TrueType (3, 1) fonts regardless if the 'post' table is defined or not (issue 6889) 9 years ago
Jonas Jenwald d52495a9c8 [TrueType] Recover from a missing "glyf" table by replacing it with dummy data, utilizing the existing code in `sanitizeGlyphLocations` 9 years ago
Jonas Jenwald 896e390285 Check that CIDFontType0 fonts does not actually contain OpenType font files (issue 6782) 9 years ago
Brendan Dahl eb7c36beb6 Add validation for callsubr and callgsubr for type 2 charstrings. 9 years ago
Yury Delendik 6b60c8f4db Adds UMD headers to core, display and shared files. 10 years ago
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