Ebrahim Byagowi
9b853f755d
[cff] Use switch on multi-format structs ( #1762 )
6 years ago
Behdad Esfahbod
b2ab15a78c
Fix more warnings
6 years ago
Behdad Esfahbod
7f6fca4ef7
Force-disable CFF code under disabling conditions
...
Subsetter size goes down from 190kb to 119kb. Main library about 7kb.
Part of https://github.com/harfbuzz/harfbuzz/issues/1652
6 years ago
Behdad Esfahbod
62dfe7aea2
[cff] Minor
6 years ago
Michiharu Ariza
02ae2591d9
initialize return param subr_num in popSubrNum
...
also snake_cased popSubrtNum and other surrounding function names
6 years ago
Ebrahim Byagowi
92588782d7
Remove space between right angle brackets now that we have C++11 ( #1689 )
6 years ago
Behdad Esfahbod
b986c6a321
[C++11] Remove IntType::set() in favor of operator=
6 years ago
Michiharu Ariza
c12862657f
added desubroutinize & retain-gids full test cases with CFF fonts
...
and CFF retain-gids fixes
6 years ago
Michiharu Ariza
f2908b4d8f
Implement subset --regain-gids option with CFF1/2
...
along with api tests & expected results
6 years ago
Garret Rieger
846e05a298
[subset] Re-add glyphs array to subset plan, with new name 'glyphs_deprecated'. Switch CFF subsetting to use it.
6 years ago
Behdad Esfahbod
0b2fa342de
More of previous
6 years ago
Michiharu Ariza
760303d411
deleted a duplicate fontdicts_mod.fini() call ( #1538 )
6 years ago
Michiharu Ariza
7b48641aa8
fix leak in subset_enc_supp_codes ( #1537 )
...
oss-fuzz issue 12310
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
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
b1821b9d09
some more
6 years ago
Michiharu Ariza
a6da9b9415
fixed Charset format selection
6 years ago
Michiharu Ariza
b6903bd6c4
ensure fdmap initialized as identity for single-FD (non-CID) fonts
6 years ago
Michiharu Ariza
b67a7c731f
drop dotsection as hint along with test case
6 years ago
Michiharu Ariza
9d0231cfe7
fixed a subset bug when no font dicts reduce
6 years ago
Michiharu Ariza
ecdb77f0ae
fixed CFF1 subset of std encoding & non-std charset combo
6 years ago
Michiharu Ariza
0dfa584cb4
changed Adobe company name
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
1da4de7e7b
fix for subset fuzzer failure
...
A called subr must be freshly parsed or completely parsed. otherwise the prevoius parse must have terminated prematurely
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
a9c305c2b0
fix leaks
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
8679d02b4b
implement flex ops for glyph extents/subset
...
also removed unused CSInterpEnv::move_[xy]_with_arg
fixed bug a width being left over on argStack with CFF1
6 years ago
Michiharu Ariza
9228db06f4
added CFF1 Expert Encoding subset test & bug fixes
6 years ago
Michiharu Ariza
b51418f596
added CFF2 get_extents
...
added source hb-ot-cff2-table.cc
augmented VariationData to return scalars
misc bug fixes, renaming, cleanup
6 years ago
Michiharu Ariza
d7b384ad0d
silence warning ^3
6 years ago
Michiharu Ariza
e9cc71ac86
silence warning ^2
6 years ago
Michiharu Ariza
51d5bf4ca2
silence warnings
6 years ago
Michiharu Ariza
35b64dfb57
silence & fix new warnings
6 years ago
Michiharu Ariza
ebeccf3e63
fixed char widths & standard Encoding in subset CFF
...
also merged flush_n_args to flush_args into one
takes start index of the arguments on stack instead of count
6 years ago
Michiharu Ariza
c0c85b852d
implemented get_glyph_extents with CFF1
...
Implemented path operators in a new struct PathProc hooked up to CSOpSet
Added current point to CSInterpEnv
6 years ago
Michiharu Ariza
0f159a38a6
fixed serialize_fdselect_3_4
6 years ago
Michiharu Ariza
1608481d88
fixed bugs in Charset serialization
...
also some code cleanup
6 years ago
Michiharu Ariza
5b453f77f8
fixed off-by-one error with offSize
6 years ago
Michiharu Ariza
c6f75c3049
fix build attempt
6 years ago