220 Commits (7d8fa1385d47e180cdba32a2e63d87d5c4132d7f)

Author SHA1 Message Date
Jonas Jenwald 25bf5db47e Fix errors reported by the `no-extra-boolean-cast` ESLint rule 8 years ago
Jonas Jenwald d3043167de Correctly detect more cases of non-embedded Arial Black fonts (issue 7835) 9 years ago
Jonas Jenwald 81b9d553cf Add TeX-specific glyph names to `glyphlist.js` to improve both glyph mapping and text selection for mathematic fonts (issue 2594) 9 years ago
Brendan Dahl 8d036faf40 Move symbolic font glyphs to private use area if they don't have unicode mappings. 9 years ago
Jonas Jenwald 1da59bec9b Remove a remaining old-style preprocessor from `src/core/fonts.js` (PR 7322 follow-up) 9 years ago
Jonas Jenwald aadcbe98c8 Replace empty CharStrings with '.notdef' in `Type1Font_wrap` to prevent OTS from rejecting the font (bug 1252420) 9 years ago
Jonas Jenwald 325f7afcca For embedded Type1 fonts without included `ToUnicode`/`Encoding` data, attempt to improve text selection by using the `builtInEncoding` to amend the `toUnicode` map (issue 6901, issue 7182, issue 7217, bug 917796, bug 1242142) 9 years ago
Jonas Jenwald 0b75f63c03 Don't duplicate the first entry in the `charCodeToGlyphId` map for CIDFontType2 fonts with a `CIDToGIDMap` that already mapped the first entry to a non-zero `glyphId` (issue 7544) 9 years ago
Jonas Jenwald 44b75c01a1 Check that Type1C fonts does not actually contain OpenType font files (issue 7598) 9 years ago
Jonas Jenwald 088ce6c009 Add a unit-test to check that `ProblematicCharRanges` contains valid entries 9 years ago
Jonas Jenwald 64783c8b6e Don't map glyphs to the Lepcha Unicode block (issue 7426) 9 years ago
klemens 6f03f62327 trivial spelling fixes 9 years ago
Jonas Jenwald 51e46fa1a7 Change the `warn` to `info` in `recoverGlyphName` to reduce the console spam 9 years ago
Jonas Jenwald 7866109af9 Fallback to attempt to recover standard glyph names when amending the `charCodeToGlyphId` with entries from the `differences` array in `type1FontGlyphMapping` (issue 7439) 9 years ago
Jonas Jenwald c1ca268ef3 Skip mapping of glyphs to Unicode "Ideographic space" (issue 7416) 9 years ago
Jonas Jenwald 6a0b047bfa Add upper-case `I` as a possible space replacement fallback in `Font.spaceWidth` to improve text-selection (issue 7180) 9 years ago
Jonas Jenwald a36a946976 Move the `isSpace` utility function from core/parser.js to shared/util.js 9 years ago
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. 9 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