sbarman
|
2805122023
|
cleanup
|
2011-08-19 08:19:32 -07:00 |
|
Adil Allawi
|
5a528944f0
|
Change the way Type 2 CID fonts are encoded. Move the cmap glyphs above the first 255 unicode values so that fillText does not change them and create an encoding to map characters to the glyphs.
|
2011-08-19 14:05:07 +01:00 |
|
sbarman
|
5f233d7cde
|
cleanup
|
2011-08-18 22:05:08 -07:00 |
|
sbarman
|
08521e5018
|
Merge branch 'master' into openmag
|
2011-08-18 21:57:08 -07:00 |
|
sbarman
|
085f8dc1c9
|
cleanup
|
2011-08-18 20:40:16 -07:00 |
|
sbarman
|
b1aab2f730
|
Fixed fonts to use strings instead of Uint8Arrays
|
2011-08-18 20:17:54 -07:00 |
|
sbarman
|
32bde23157
|
cleanup
|
2011-08-18 13:53:26 -07:00 |
|
sbarman
|
c9f9b8b193
|
working font
|
2011-08-18 13:53:26 -07:00 |
|
sbarman
|
8acc31ec83
|
Still testing type1 charstring conversion
|
2011-08-18 13:53:26 -07:00 |
|
sbarman
|
04b14f7b8a
|
fixed reading from sream
|
2011-08-18 13:53:26 -07:00 |
|
sbarman
|
7d5dcb5d43
|
added ability to write data to file
|
2011-08-18 13:53:25 -07:00 |
|
sbarman
|
5b359f1c1e
|
still mucking with subroutines
|
2011-08-18 13:53:25 -07:00 |
|
sbarman
|
bf9092b660
|
working on subroutines
|
2011-08-18 13:53:25 -07:00 |
|
sbarman
|
60127b0830
|
increased size of loaded font
|
2011-08-18 11:28:37 -07:00 |
|
sbarman
|
a24ec410ee
|
cleanup
|
2011-08-17 16:04:14 -07:00 |
|
sbarman
|
8ff8a92244
|
Revert "Merge branch 'writeToFile' into hmm"
This reverts commit 9b91fca347 , reversing
changes made to c592d5ed3b .
|
2011-08-17 16:00:54 -07:00 |
|
sbarman
|
bd567fc322
|
working font
|
2011-08-17 15:55:09 -07:00 |
|
sbarman
|
9f615036d9
|
Still testing type1 charstring conversion
|
2011-08-16 16:14:29 -07:00 |
|
sbarman
|
9b91fca347
|
Merge branch 'writeToFile' into hmm
|
2011-08-16 14:49:17 -07:00 |
|
sbarman
|
c592d5ed3b
|
still mucking with subroutines
|
2011-08-16 14:49:12 -07:00 |
|
sbarman
|
23d37f98db
|
working on subroutines
|
2011-08-16 10:25:02 -07:00 |
|
notmasteryet
|
b141a66309
|
Fixing bad comment
|
2011-08-14 12:11:23 -05:00 |
|
notmasteryet
|
aad77fcc55
|
BaseFont and misc fonts fixes
|
2011-08-14 08:40:22 -05:00 |
|
Kalervo Kujala
|
b2037841e5
|
Correct the coding style according to gjslint in font.js
Also refactor the lines that are over 80 characters long.
|
2011-08-11 21:41:03 +03:00 |
|
Kalervo Kujala
|
f656e841ac
|
Correct the coding style according to gjslint.
And remove stray tabs.
|
2011-08-08 23:13:32 +03:00 |
|
notmasteryet
|
9bcf2d8b7c
|
Fixing the maxAdvanceWidth and the amount of the missing sidebearing
|
2011-07-31 22:56:41 -05:00 |
|
Vivien Nicolas
|
aa41a75f6e
|
Support standards fonts
|
2011-07-25 16:42:46 +02:00 |
|
sbarman
|
f177398777
|
Fixed the mapping from charstring to glyphs
|
2011-07-22 09:57:26 -07:00 |
|
sbarman
|
d502866111
|
cleanup code
|
2011-07-22 09:21:38 -07:00 |
|
sbarman
|
c4d81646dc
|
fixed reading from sream
|
2011-07-21 15:18:00 -07:00 |
|
sbarman
|
5b43c25d56
|
removed unnecessary call to parseEncoding
|
2011-07-21 14:02:31 -07:00 |
|
sbarman
|
c67037e268
|
added ability to write data to file
|
2011-07-21 11:51:39 -07:00 |
|
sbarman
|
870027136a
|
Merge branch 'master' into font
|
2011-07-21 11:29:15 -07:00 |
|
Vivien Nicolas
|
2197235470
|
Merge to upstream
|
2011-07-21 18:29:32 +02:00 |
|
sbarman
|
bed8052cab
|
Merge branch 'master' into font
|
2011-07-21 09:09:25 -07:00 |
|
Vivien Nicolas
|
1d59de6c12
|
Fix a > 32000 conversion error in type1 to type2 charstring
|
2011-07-21 11:01:38 +02:00 |
|
sbarman
|
daf4979e2f
|
cleanup
|
2011-07-20 17:10:04 -07:00 |
|
sbarman
|
8d09c0d7a4
|
removed Fonts class
|
2011-07-20 16:42:51 -07:00 |
|
sbarman
|
2f30dd5174
|
moved width setting code
|
2011-07-20 15:00:16 -07:00 |
|
sbarman
|
8824ff9539
|
removed code to parse type2 ccharstrings
|
2011-07-20 14:43:44 -07:00 |
|
sbarman
|
c7aec8ac8a
|
used width info in fontDict
|
2011-07-20 12:57:47 -07:00 |
|
sbarman
|
8763002c44
|
extracted filetype in pdf.js instead of fonts.js
|
2011-07-20 11:25:00 -07:00 |
|
Vivien Nicolas
|
6311977fee
|
Merge with upstream
|
2011-07-20 15:18:44 +02:00 |
|
Vivien Nicolas
|
3cc9912acd
|
Add a simpler path for cmap format 0 to cmap format 4
|
2011-07-20 14:29:07 +02:00 |
|
sbarman
|
b8df2eb68b
|
cleanup
|
2011-07-19 11:33:54 -07:00 |
|
sbarman
|
173c68ef86
|
cleanup
|
2011-07-19 11:30:42 -07:00 |
|
Vivien Nicolas
|
776c10d4e6
|
Fix a regression on the application of the textMatrix extracted from a CFF font
|
2011-07-19 14:29:05 +02:00 |
|
Vivien Nicolas
|
913504a937
|
Remover leftover
|
2011-07-19 14:23:57 +02:00 |
|
Vivien Nicolas
|
c6c72291d9
|
Do not rasterize below 14px
|
2011-07-19 14:22:51 +02:00 |
|
sbarman
|
5f133a8c07
|
fixed missing entries in charstring data
|
2011-07-18 21:01:05 -07:00 |
|
sbarman
|
226f3fa3ee
|
add correct char width
|
2011-07-18 15:49:32 -07:00 |
|
sbarman
|
ed42423e3b
|
working version, spacing not working
|
2011-07-18 12:22:04 -07:00 |
|
sbarman
|
a7d6f857da
|
working on cff fonts
|
2011-07-18 08:24:57 -07:00 |
|
Vivien Nicolas
|
42653edf9a
|
Add support for beginfbchar
|
2011-07-15 19:14:07 +02:00 |
|
sbarman
|
0090b2e696
|
added support for index, dictionary in cff
|
2011-07-15 08:58:09 -07:00 |
|
Vivien Nicolas
|
aea63a7051
|
Fix missing sidebearings from the hmtx table (see canvas.pdf)
|
2011-07-15 16:22:45 +02:00 |
|
Vivien Nicolas
|
e2d808a60f
|
Switch length versus offset mistake in readTableEntry
|
2011-07-15 16:02:32 +02:00 |
|
Vivien Nicolas
|
b8fc365fff
|
Fix the ranges duplication cleanup features
|
2011-07-15 15:41:30 +02:00 |
|
Vivien Nicolas
|
10e9694135
|
Support font with characters below 0x20 declared in format 1 cmap and be more general about the TrueType rewritting cases
|
2011-07-15 14:59:34 +02:00 |
|
Adil Allawi
|
06986bb15f
|
nits, picked
|
2011-07-13 17:46:48 +01:00 |
|
Adil Allawi
|
0906cc8c94
|
Bump up the max font file size. Composite fonts can be larger than simple fonts. Once we support Japanese we will need to reconsider how this is done as a large Japanese font may be up to 30Mb in size.
|
2011-07-13 09:38:39 +01:00 |
|
Adil Allawi
|
36763e8e82
|
Fully support truetype composite fonts, clean up
|
2011-07-13 09:31:34 +01:00 |
|
Adil Allawi
|
6b6e97dff6
|
cleanup, added new flag to the font properties called compositeFont. If true, the encoding and ShowText strings must be multi-byte
|
2011-07-12 03:58:09 +01:00 |
|
Adil Allawi
|
7b8542c6a7
|
Second pass CIDFont support - make Arial Unicode in OpenOffice PDF
- supports PDF fonts with CIDtoGIDMap and no cmap
|
2011-07-11 17:41:55 +01:00 |
|
notmasteryet
|
9b69997046
|
Clearing font checksum adjustment field
|
2011-07-10 16:47:09 -05:00 |
|
Andreas Gal
|
6ef9e77b8a
|
Merge pull request #232 from notmasteryet/cff-issues2
CFF issues: cmap length, PS-name removal, Private Dictionary
|
2011-07-10 02:01:08 -07:00 |
|
Chris Jones
|
7f9c9f5ba2
|
work around #233 so that tests stop failing for the moment
|
2011-07-09 22:12:42 -07:00 |
|
Chris Jones
|
671dd3b0e8
|
back out bad font measurement changes
|
2011-07-09 21:43:28 -07:00 |
|
notmasteryet
|
75758ffec5
|
Merge branch 'master' of https://github.com/andreasgal/pdf.js.git into cff-issues2
|
2011-07-09 23:30:40 -05:00 |
|
notmasteryet
|
37315af515
|
fix 'private' keyword
|
2011-07-09 23:24:24 -05:00 |
|
notmasteryet
|
67f133dea7
|
CFF/OTF font and sanitizer friendly fixes
|
2011-07-09 23:12:11 -05:00 |
|
Chris Jones
|
fb9b8b6417
|
Merge pull request #226 from andreasgal/staging
simplify font measurement code, bug is now fixed in nightlies, no need to
|
2011-07-09 16:51:04 -07:00 |
|
Andreas Gal
|
adb619941c
|
simplify font measurement code, bug is now fixed in nightlies, no need to hack around it
|
2011-07-08 19:28:24 -07:00 |
|
Andreas Gal
|
f2a4756c77
|
backout font measurement change, it is breaking tests
|
2011-07-08 18:51:20 -07:00 |
|
Andreas Gal
|
5bf4fcba9b
|
properly fix font loading, shaon's code didn't work after all
|
2011-07-08 18:45:38 -07:00 |
|
Andreas Gal
|
3fb2b026bf
|
Merge pull request #224 from sbarman/master
fix to bug with detected font loading
|
2011-07-08 18:39:32 -07:00 |
|
sbarman
|
c06c14a72a
|
fix to font loading code
|
2011-07-08 18:24:22 -07:00 |
|
Andreas Gal
|
4a7fe7cb5d
|
move text measurement into Font
|
2011-07-08 17:57:03 -07:00 |
|
Andreas Gal
|
0b6c0db931
|
move unicode translation cache into Font
|
2011-07-08 16:36:50 -07:00 |
|
Andreas Gal
|
f6eb9cecd3
|
avoid font lookup by id in showText
|
2011-07-08 14:58:19 -07:00 |
|
Andreas Gal
|
d3979e4ac2
|
Merge pull request #219 from sbarman/font
Font code cleanup, avoid name collisions
|
2011-07-08 11:06:54 -07:00 |
|
sbarman
|
7b659fd605
|
fixed case when font cannot be found
|
2011-07-08 10:04:52 -07:00 |
|
sbarman
|
4404871212
|
fixed font loading bug
|
2011-07-08 08:14:34 -07:00 |
|
Andreas Gal
|
7fb940c4ba
|
revert a couple changes from the last merge
|
2011-07-08 01:02:14 -07:00 |
|
Andreas Gal
|
df79f10f2f
|
Merge pull request #214 from saebekassebil/master
Dict object improvements. Performance.
|
2011-07-08 00:59:00 -07:00 |
|
sbarman
|
619a521678
|
minor fix
|
2011-07-07 17:37:27 -07:00 |
|
sbarman
|
c39eae3ce9
|
fixed up minor bugs
|
2011-07-07 17:15:53 -07:00 |
|
sbarman
|
8ac2367fa0
|
not refer fonts by name, instead use id
|
2011-07-07 16:48:04 -07:00 |
|
Saebekassebil
|
dc9316db2d
|
Better debug at glyphs
|
2011-07-07 17:03:24 +02:00 |
|
Andreas Gal
|
6eaad13132
|
remove fontCount/fontName/kDisableFonts debug hacks and fix bug in font loading
|
2011-07-06 22:14:48 -07:00 |
|
Andreas Gal
|
3557bae461
|
temporary revert a change in the font code to make mac fonts work again
|
2011-07-06 16:06:00 -07:00 |
|
notmasteryet
|
4169fe151d
|
Merge branch 'master' of https://github.com/andreasgal/pdf.js.git into cff-issues
Conflicts:
fonts.js
|
2011-07-06 08:16:07 -05:00 |
|
notmasteryet
|
70164163de
|
fixing CFF things to pass FontValidator
|
2011-07-06 08:12:41 -05:00 |
|
Rob Sayre
|
f5a3587dde
|
Almost passing gjslint.
|
2011-07-05 23:06:45 -07:00 |
|
Chris Jones
|
2dc1ff98ac
|
built-in fonts are not cached
|
2011-07-05 00:02:09 -04:00 |
|
Chris Jones
|
122d168b51
|
fix some bugs
|
2011-07-04 23:28:44 -04:00 |
|
Chris Jones
|
fe09c1852c
|
handle font names with comments (fix fix of hack hack)
|
2011-07-04 18:21:13 -04:00 |
|
Vivien Nicolas
|
ac5db21fb1
|
Let Chrome (and others?) show TrueType fonts
|
2011-07-03 22:29:46 +02:00 |
|
Vivien Nicolas
|
cdff127eef
|
Let Chrome (and others?) handle Type1 Fonts (TrueType not working yet)
|
2011-07-03 14:52:00 +02:00 |
|
Vivien Nicolas
|
f58983f4e5
|
Clean up Fonts.convert()
|
2011-07-03 01:17:28 +02:00 |
|
Vivien Nicolas
|
b390a03a1d
|
Merge branch 'master' of https://github.com/andreasgal/pdf.js
|
2011-07-02 07:54:58 +02:00 |
|
Vivien Nicolas
|
d28c0cb41e
|
Get rid of FontsUtils
|
2011-07-02 07:54:28 +02:00 |
|
Chris Jones
|
818f79986b
|
work around chrome bug, and work around ff5 bug in the workaround
|
2011-07-01 22:19:02 -07:00 |
|
Vivien Nicolas
|
a600a3d2ce
|
Fix bustage while merging
|
2011-07-02 06:01:43 +02:00 |
|
Vivien Nicolas
|
41d4738289
|
Merge with upstream
|
2011-07-02 05:50:59 +02:00 |
|
Vivien Nicolas
|
3e78538c1c
|
Remove cmap format 100, fixes some nits to merge with upstream
|
2011-07-02 05:46:50 +02:00 |
|
Vivien Nicolas
|
3726686d22
|
Add a format100 table for Mac
|
2011-07-02 02:44:57 +02:00 |
|
Vivien Nicolas
|
3dcf65d9df
|
Fix a small issue in the waiting for font to load code
|
2011-07-02 01:01:55 +02:00 |
|
Vivien Nicolas
|
d10cf7c929
|
Reland commit 442d184 but make it works with uncompressed PDF
|
2011-07-02 00:19:24 +02:00 |
|
Vivien Nicolas
|
63e4f0293f
|
Add support for stemHW/stemVW/stemSnapH/stemSnapV
|
2011-07-01 11:28:22 +02:00 |
|
Chris Jones
|
7b883a89db
|
merge
|
2011-07-01 01:23:20 -07:00 |
|
Vivien Nicolas
|
e13164eca6
|
Read the text matrix from the Type1 font ascii header
|
2011-07-01 07:16:56 +02:00 |
|
Vivien Nicolas
|
ae2d130f40
|
Improve the extractInfo code to be more robust
|
2011-07-01 05:16:27 +02:00 |
|
Vivien Nicolas
|
697aa0f15e
|
Merge branch 'master' of https://github.com/andreasgal/pdf.js
|
2011-07-01 03:39:55 +02:00 |
|
Vivien Nicolas
|
dae18a2710
|
Use strings instead of arrays in CFF.wrap
|
2011-07-01 03:24:23 +02:00 |
|
Vivien Nicolas
|
db30cc6de1
|
Start converting CFF class to use strings instead of arrays
|
2011-07-01 00:57:17 +02:00 |
|
Vivien Nicolas
|
5cbc6875b3
|
Open the CFF class road for Type1C font
|
2011-07-01 00:44:11 +02:00 |
|
Chris Jones
|
082edd6460
|
merge
|
2011-06-30 14:57:00 -07:00 |
|
Julian Viereck
|
391c26b407
|
Make worker work again after latest font changes
|
2011-06-30 14:25:57 +02:00 |
|
Vivien Nicolas
|
2e7df01459
|
Fix windows mispotionning issue
|
2011-06-30 12:40:21 +02:00 |
|
Chris Jones
|
6b72f8e98a
|
just create one dummy element too, and centralize hackery
|
2011-06-30 03:02:50 -07:00 |
|
Chris Jones
|
9bc06a9924
|
load all newly-created fonts in one document to speed things up
|
2011-06-30 02:51:42 -07:00 |
|
Vivien Nicolas
|
ce17e9481f
|
Merge branch 'master' of https://github.com/andreasgal/pdf.js
|
2011-06-30 11:50:53 +02:00 |
|
Vivien Nicolas
|
9b67a1e6b5
|
Forgot to add pdf.js to the last commit
|
2011-06-30 11:50:47 +02:00 |
|
Vivien Nicolas
|
1c78d8fdb4
|
Fix more headers tables
|
2011-06-30 11:48:43 +02:00 |
|
Chris Jones
|
49058c9174
|
merge with remote
|
2011-06-30 02:14:47 -07:00 |
|
Chris Jones
|
a564076b22
|
add another hackity hack to detect font loaded-ness
|
2011-06-30 02:08:53 -07:00 |
|
Andreas Gal
|
05381cc531
|
cache font measurements
|
2011-06-30 01:00:58 -07:00 |
|
Vivien Nicolas
|
7ff6f5166c
|
Fix languages bustage
|
2011-06-30 09:25:57 +02:00 |
|
Vivien Nicolas
|
64f8e79bf8
|
Make windows table header more compatible with windows
|
2011-06-30 05:38:10 +02:00 |
|
Vivien Nicolas
|
2334399498
|
Add more information about the italic angle
|
2011-06-30 03:27:22 +02:00 |
|
Vivien Nicolas
|
9921288f44
|
Set a default font size identical for .notdef
|
2011-06-30 03:24:07 +02:00 |
|
Vivien Nicolas
|
a2974b2f58
|
Map .notdef in order to attach the [missing|break]Char to it
|
2011-06-30 03:01:46 +02:00 |
|
Vivien Nicolas
|
2e71f79865
|
Remove the first empty character of charset
|
2011-06-30 02:58:40 +02:00 |
|
Vivien Nicolas
|
e448dce42b
|
Add better informations for the OS/2 table
|
2011-06-30 02:52:47 +02:00 |
|
Vivien Nicolas
|
1c611d4e32
|
Improve a bit the createNameTable code
|
2011-06-30 01:18:11 +02:00 |
|
Vivien Nicolas
|
4c6c20fc29
|
Fix a few headers fields
|
2011-06-29 21:53:22 +02:00 |
|
Vivien Nicolas
|
a7c3ebcac3
|
Do not include the padding size in the length declared in the table header
|
2011-06-29 21:30:25 +02:00 |
|
Vivien Nicolas
|
0a7531cb33
|
Calculate correct checksum for the field header
|
2011-06-29 21:29:33 +02:00 |
|
Vivien Nicolas
|
91399b50ef
|
Use the shadow method in Fonts.ctx
|
2011-06-29 03:00:23 +02:00 |
|
Vivien Nicolas
|
dd923d5aea
|
Merge with upstream, reverse changeset 4e24288 since it brokes TTF on linux
|
2011-06-29 02:58:51 +02:00 |
|
Chris Jones
|
7c9bf1f36f
|
Merge pull request #95 from jviereck/master
Make processing of fonts happen in a worker.
|
2011-06-28 14:56:10 -07:00 |
|
Vivien Nicolas
|
80f650b6bb
|
Add a fake canvas for scaling fonts to improve perfs
|
2011-06-28 18:24:16 +02:00 |
|
Vivien Nicolas
|
63e1601464
|
Small cleanup
|
2011-06-28 17:35:15 +02:00 |
|
Adil Allawi
|
4e242880b6
|
Function replaceCMapTable() was not setting the font pos pointer to the correct place to read the cmap. Caused Mac PDFs to fail because the cmap was not correctly rewritten.
|
2011-06-28 15:14:38 +01:00 |
|
Vivien Nicolas
|
82928b14a1
|
Handle division in hsbw to provide the correct information to the hmtx table
|
2011-06-28 13:34:39 +02:00 |
|
Vivien Nicolas
|
fe55204042
|
Add 1 to the number of metrics in the HHEA table and remove the mapping of .notdef
|
2011-06-28 13:15:00 +02:00 |
|
Vivien Nicolas
|
bfe0356533
|
Filled notdef in the cmap table
|
2011-06-28 13:06:31 +02:00 |
|
Julian Viereck
|
519fb435c3
|
Fonts.js: Add isLoadedCallback and add hack known from worker/client.js
|
2011-06-28 09:50:53 +02:00 |
|
Julian Viereck
|
23e9064f17
|
Make all fonts render. Use encoding from FontWorker. Render canvas if id!=0 although fonts haven't arrived yet.
Conflicts:
worker/pdf.js
|
2011-06-28 08:06:40 +02:00 |
|