Behdad Esfahbod
d25a2f1496
Fix a few warnings
6 years ago
Ebrahim Byagowi
ae6e348d64
Minor, tweak spaces
6 years ago
Michiharu Ariza
29f0b6bce7
CFF renaming ( #1507 )
...
* reimplement ByteStr as byte_str_t based on hb_ubytes_t
Unuse start_embed<ByteStr>
Also renamed SubByteStr to byte_str_ref_t
More renaming to come
* substr renamed to str_ref in line with its type byte_str_ref_t
* uncamelize non-table struct names
* uncamelized non-struct types OpCode etc
* add byte_str_t copy ctor
* test
* test2
* undo tests
* fix bot failure
* undo the previous change
* fixed tabs, added inline
* Revert "fixed tabs, added inline"
This reverts commit 21163c30e9
.
* fix tabs
6 years ago
Behdad Esfahbod
474a12058d
[array/vector] Rename len to length
6 years ago
Ebrahim Byagowi
e412008599
Remove redundant void from C++ sources ( #1486 )
6 years ago
Ebrahim Byagowi
b2ebaa9afa
Remove redundant 'inline' from methods ( #1483 )
6 years ago
Michiharu Ariza
bcb4ecaf68
[CFF] check out of range FD index ( #1477 )
...
* add fd index checks to subr subsetter
also added oss-fuzz test case
* undid SubrSubsetParam::is_valid
because already validated by SubrClosures.valid
6 years ago
Michiharu Ariza
2941208f1e
[CFF] oss-fuzz issue 11690 ASSERT: substr.offset >= opStart ( #1461 )
...
* fix oss-fuzz 11690: substr.offset >= opStart
detect recursive subroutine call & handle as error
* fix build failure
* add minimized test case for oss-fuzz 11690
* removed asserts
6 years ago
Michiharu Ariza
333586245c
minimize use of assert: removed or changed to error handling ( #1467 )
6 years ago
Behdad Esfahbod
825df6dbc7
[CFF] Change spaces to tabs
6 years ago
Behdad Esfahbod
592f39b3c4
[CFF] Whitespace
6 years ago
Michiharu Ariza
d8c6913765
undo 0u
6 years ago
Michiharu Ariza
9483da145d
redo fixes
6 years ago
Michiharu Ariza
291da44823
yet another
6 years ago
Michiharu Ariza
b1821b9d09
some more
6 years ago
Michiharu Ariza
b67a7c731f
drop dotsection as hint along with test case
6 years ago
Michiharu Ariza
072c7aba92
use 2-byte offset instead of 4-byte for local subrs
...
more than enough since local subrs immediately follow its corresponding private dict, as the result 2-byte redunction for each font dict with local subrs
updated api test expected subset fonts accordingly
6 years ago
Michiharu Ariza
0dfa584cb4
changed Adobe company name
6 years ago
Michiharu Ariza
636a6833c5
fixed ends_in_hint bug
...
subr ends in hint itself should be regarded as hint
this flag should propagate to its caller if the call itself is at the end of the caller
6 years ago
Michiharu Ariza
0996c0ff62
implented no-desubroutinize with CFF2 along with API test
...
replaced AdobeVFPrototype.abc.otf with a hinted (maually) & subroutinized copy
replaced expected results as well
6 years ago
Michiharu Ariza
b721fdae66
fixed leaks in CFF subr subset
6 years ago
Michiharu Ariza
85f5644e8e
added missing switch breaks
6 years ago
Michiharu Ariza
191ca0f15b
CFF1 no-desubr fixes
...
make sure charstring/subrs not ending with endchar/return handled correctly
if no local subrs, skip serializing Subrs op in Private
misc fixes
6 years ago
Michiharu Ariza
1bc710a8c9
added CFF1 desubr api test cases & bug fixes
6 years ago
Michiharu Ariza
6186dbf1be
added hb_subset_input_set_desubroutinize API
...
hooked up with CFF1 subroutinizer
a renaming
6 years ago
Michiharu Ariza
2840a104c1
tweaks to build with new merge
6 years ago
Michiharu Ariza
d56e338a90
CFF1 no-desubroutinize + no-hinting
...
no-desubroutinize option is disabled for now
code cleanup (esp. CFF1 width handling)
bug fixes & renaming
6 years ago
Michiharu Ariza
b64ef69b9e
from encode_int removed assert hit by fuzzer
...
clamp the value instead
6 years ago
Michiharu Ariza
0f159a38a6
fixed serialize_fdselect_3_4
6 years ago
Michiharu Ariza
497e7fb264
misc bug fixes
...
Added OpCode_FontMatrix to TopDictOpSet (yet to parse values)
fixed a wrong assert in encode_int
6 years ago
Michiharu Ariza
cc52e53cf0
Removed unused subr subset code
6 years ago
Michiharu Ariza
1666b89e30
subset CFF1 String Index
...
Repurposed FDMap as Remap then subclassed for remapping SIDs
misc code cleanup
6 years ago
Michiharu Ariza
5ea03d2951
fix build by untemplatizing DictOpSet & DictVal
...
as they aren't instantiated with BlendArg (yet)
6 years ago
Michiharu Ariza
f2d299b0b7
Drop hints from CFF2 charstrings
...
Templatized ArgStack so it may store the default value along with blend deltas as BlendArg while parsing blend operator arguments in CFF2 charstring
Added get_region_count() method to VarRegionList & VariationStore
6 years ago
Michiharu Ariza
fcf177885b
templatized ArgStack as a prep to store blends
6 years ago
Michiharu Ariza
8c5e03b541
Added drop_hints to SubrFlattener
6 years ago
Michiharu Ariza
9fd08cc238
CFF2 subroutine flattner
...
Factored out CFF1 & CFF2 common subsetting code in hb-subset-cff-common.hh
6 years ago
Michiharu Ariza
1d1afddfd2
corrected preprocessor guards
6 years ago