14 Commits (2670aa680b0f43f8c44b48fde46cfb65a11cb343)

Author SHA1 Message Date
Vivien Nicolas a46ebe73ff Ask chromium to shut up on font/otf mimetype by using another wrong mimetype and fix a few more 'strict mode' errrors 14 years ago
Vivien Nicolas e62bd48a9e Use strict mode for js files 14 years ago
Vivien Nicolas 59bd7620de Fill informations for the 'name' table in order to pass the sanitizer (Mozilla bug 660088) 14 years ago
Vivien Nicolas 8d9ffb1872 Use measureText instead of mozMeasureText (deprecated) 14 years ago
Andreas Gal 6dc697071e avoid toString conversion in lookup 14 years ago
Andreas Gal 5517602df0 speedup unicode/glyph conversion and cache translated strings in the font 14 years ago
Andreas Gal 735bfa5972 move cffStandardStrings into utils/ along with font_utils.js 14 years ago
Vivien Nicolas 21ee01eb7c Fix wrong order of the 'div' command 14 years ago
Vivien Nicolas 172dadb008 Clean up some debug leftovers 14 years ago
Andreas Gal fd269facbc 2nd attempt to make glyph list integers 14 years ago
Andreas Gal 4184414501 revert commit 2311c954f8 14 years ago
Andreas Gal 2311c954f8 store unicode value as integer instead of hex string in glyphlist 14 years ago
Vivien Nicolas 6f91d109c6 Rename PDFFonts.js to fonts.js 14 years ago
Vivien Nicolas f8696259b7 Fix CIMM6/CIIM9 14 years ago
Vivien Nicolas 75baff40f4 Do not use stream when it is not necessary 14 years ago
Vivien Nicolas 7ec2ea1e2f Use a typed array in the CMAP construction function 14 years ago
Vivien Nicolas ac020e26f1 Add a direct translation to one of the way to format charstring number in flattenCharstring (28, x, y) 14 years ago
Vivien Nicolas fb9fb5e3fa Get rid or IsNum/IsString/IsArray in flattenCharstring 14 years ago
Vivien Nicolas bf44657825 Remove some leftovers from the previous patch 14 years ago
Vivien Nicolas 40d44174cf Rework some code to enhance performance (CIIM6/CIIM9 are rejected by the sanitizer now) 14 years ago
Vivien Nicolas f56a742056 Remove some debug leftovers and add some comments about future directions for the code 14 years ago
Vivien Nicolas 3dbfde89a3 Resolve the char->glyphs mapping issue 14 years ago
Vivien Nicolas 15aad009c9 Change the nominalWidth to not use the format 28,b0,b1 but b0-139 in order to pass the sanitizer and disable TrueType support until it fully works 14 years ago
Vivien Nicolas 3eb36429f3 Use spaces to compare font size to detect when the @font-face rule works, this seems to be more accurate 14 years ago
Vivien Nicolas c0ef98a9da Remove some useless JS function calls 14 years ago
Vivien Nicolas d565193cbd Get rid of the PostScript interpreter (part 1) 14 years ago
Vivien Nicolas 0ad010ecbd Make Type1 glyphs use the default width they declare 14 years ago
Vivien Nicolas 3fbeeccb96 Forgot to turn off some debug flags 14 years ago
Vivien Nicolas 78e36888fd Add Encodings.js and change the code to generate a CharSet per font, this will allow future changes to the OpenType font generator 14 years ago
Vivien Nicolas 32118c5650 Add a basic support for TrueType (generate fonts with OS/2 table) 14 years ago
Vivien Nicolas bdf8577c48 Remove direct access to the underlying map object of dict in the fonts builder 14 years ago
Vivien Nicolas 363071aab9 Add XObjects fonts to the list of page fonts and has a forEach method to the Dict class 14 years ago
Vivien Nicolas e21d7b3000 Add support for brackets around the header emails 14 years ago
Vivien Nicolas 0ebd3cdf93 Add support for ligatures, asterisks, etc. 14 years ago
Vivien Nicolas b0ee046b31 Make the fonts decoding code works with asynchronous data url 14 years ago
Vivien Nicolas c03dd98075 Do not use makeSubStream in the CFF constructor 14 years ago
Vivien Nicolas 2dc7bda2bc Merge the stream handling changes with the Font code 14 years ago
Vivien Nicolas 9830b09f34 Small changes 14 years ago
Vivien Nicolas 4039e3e1e2 Clean up a bit the code to generate an OTF (again) 14 years ago
Vivien Nicolas c6f5385d15 Clean up a bit the code to generate an OTF 14 years ago
Vivien Nicolas cebdda3f35 Clean up a bit the CMAP ranges creation loop 14 years ago
Vivien Nicolas 65b8158c34 CMAP creation code is now more readable 14 years ago
Vivien Nicolas a8ce1d24e9 Beginning of the separatation of the Type1/CFF/OTF code 14 years ago
Vivien Nicolas 0a135091de Add a root 'Font' class as the outside world API 14 years ago
Vivien Nicolas 84c2e99bef Add some missing glyphs 14 years ago
Vivien Nicolas 6e7e8ee64c OTF fonts works with the sanitizer (woot) 14 years ago
Vivien Nicolas 1f7aaf7b50 Add some code to make (the first one only...) font pass the sanitizer check 14 years ago
Vivien Nicolas 632fcfed18 Turn on TrueType decoder even if the sanitizer prevent them to load at the moment 14 years ago
Vivien Nicolas 828367a1b4 Make the Type1 to OTF code active, even if the sanitizer prevent fonts to load at the moment 14 years ago
Vivien Nicolas fdacb575c5 Default the unit per EM size to 1000 14 years ago