notmasteryet
f401a64eb2
Sanitize 'loca' font table: some fonts have first glyph with length 10
14 years ago
notmasteryet
1f047495b1
Fixing large cmap-s; reduce changes in the indent encoding
14 years ago
notmasteryet
559bd070bf
Fixing lint long lines warnings
14 years ago
Adil Allawi
530d78e0f8
Added myself to the license (yay!)
...
Tweaked according to comments in pull request #482
14 years ago
Adil Allawi
870de2f7f3
Add opentype ascender, descender and units-per-em to font properties
...
Prefer font ascender, descender when creating OS/2 table
scale PDF ascender and descender in OS/2 table by font units per em if it exists
Fix the truetype font header to prevent Windows rejecting a Mac truetype font
14 years ago
Adil Allawi
cac74d7cb3
Fix OS/2 table to match font yMax and yMin from head table
14 years ago
Artur Adib
1a79f3fb43
Changed exec flags of non-exec files (chmod -x)
14 years ago
Artur Adib
de253dcbe3
Check for stylesheet presence (font.js)
...
If doc doesn't have a stylesheet, create one.
14 years ago
Kalervo Kujala
b5412c13d8
Fix gjslint warnings.
14 years ago
Kalervo Kujala
8e5a8fb49f
Fix Mode comment lines.
14 years ago
Kalervo Kujala
0dc0dd4c97
fix jslint warnings in fonts.js
14 years ago
Vivien Nicolas
ac163da4c8
Fix a small mistake for cmap format 0
14 years ago
Vivien Nicolas
cf93f23178
Disable hinting until it works
14 years ago
Vivien Nicolas
13bf137220
Draw glyphs one by one to position them correctly and remove all the scaling hack
14 years ago
Vivien Nicolas
26a6b9763b
Be more generic for serif/sans-serif rule
14 years ago
Vivien Nicolas
6a518d53fe
Be more generic for bold/italic rules
14 years ago
Vivien Nicolas
574bc87741
Fix a small Type1 encoding parsing error that cause the first Type1 font of the Type1 spec to be rejected
14 years ago
Vivien Nicolas
6329f89982
Simplify the cmap format 6 conversion - fix #449
14 years ago
Vivien Nicolas
5cb2a07b3d
Fix an issue with the vhea/vmtx tables
14 years ago
Vivien Nicolas
841fabd4e9
Fix wrong spacing for format 6
14 years ago
Vivien Nicolas
a89e7331f4
Add a comment for using unit-per-em in the measureText() method
14 years ago
Vivien Nicolas
0ea9411f69
Prevent missing charcode to block the rendering
14 years ago
Vivien Nicolas
d4fb9c786c
Use the built-in widths to calculate glyphs metrics
14 years ago
Kalervo Kujala
d9e01b1d7a
Fix gjslint warnings.
14 years ago
Vivien Nicolas
567be29720
Add more glue between glyph mapping and code mapping
14 years ago
Vivien Nicolas
4d2b8ea1c8
Refactor translateFont() to be more readable - part2
14 years ago
Vivien Nicolas
8c21f53c98
Refactor translateFont() to be more readable
14 years ago
Vivien Nicolas
12ef21cbbe
Fix lenIV misreading and warn instead of stop for unimplemented Type1 commands
14 years ago
Kalervo Kujala
0b19fd5251
Use radix in parseInt function calls.
14 years ago
Vivien Nicolas
ea42fd69e4
Add a list of common serif fonts to not always fallback on sans-serif if the font file is missing
14 years ago
Vivien Nicolas
0e062668e9
Fix review comments from #424
14 years ago
Vivien Nicolas
b1a85c6229
Fix cmap encoding records to pass the sanitizer in the case of a duplicate platform: 1, encoding: 0
14 years ago
Vivien Nicolas
f7ee90cc8c
Fix review comments for #436
14 years ago
Vivien Nicolas
83f930abd6
Add '^M' support in the ASCII85Decode filter and fix the fonts code to load the Type1 spec
14 years ago
Vivien Nicolas
3c77972b8e
Length[1-2] can be a reference
14 years ago
Vivien Nicolas
cea0408067
Do not add kCmapGlyphOffset to Type1C mapping unless it is necessary
14 years ago
Vivien Nicolas
9701f934ed
Move all format 0 characters to the private area
14 years ago
Vivien Nicolas
5970020f3b
Fix wrong mapping for issue #434
14 years ago
Vivien Nicolas
b1a5ab6d0f
Fix regression on i9.pdf
14 years ago
Vivien Nicolas
e1f7edfae8
Add a comment about supporting hint replacement
14 years ago
Vivien Nicolas
5f99e398f4
Be more flexible about Subrs parsing
14 years ago
Vivien Nicolas
18661debdc
Use lenIV to read the subrs section
14 years ago
Vivien Nicolas
e26b5b3b00
Show Type1 glyphs below 0x20, fix a bug in readNumberArray, read lenIV
14 years ago
Vivien Nicolas
00d2366d1d
Simulate Arial Black and Arial Narrow
14 years ago
Vivien Nicolas
81e1485e14
Address review comment for pull #419
14 years ago
Vivien Nicolas
59c4ba0fb9
Fix for issue #418
14 years ago
Vivien Nicolas
763bd7059a
Fix a warning when the destination link point to nothing
14 years ago
Vivien Nicolas
19c6cef7cc
Address review comments of #409
14 years ago
Vivien Nicolas
8145c00215
Fix another regression on pdf.pdf#5
14 years ago
Vivien Nicolas
ec1a8e98cf
Fix PDF reference regression
14 years ago