src/hb-ot-cff-common.hh


Log

Author Commit Date CI Message
Garret Rieger 19a8db85 2022-05-13T18:05:05 [subset] fix potential integer overflow in gname_t::cmp.
Behdad Esfahbod 2d2f66e1 2022-05-13T13:53:17 [cff-common] In INDEX, return empty bytes if length is zero Before it was possible to return non-null arrayZ.
Behdad Esfahbod 9033c7f9 2022-05-10T14:58:53 [cff-common] Optimize INDEX::operator[] Previous try showed slowdown in benchmarks, suprisingly. Rewrite it keeping the function, hopefully allowing better optimization.
Behdad Esfahbod 3aace243 2022-05-10T14:54:04 Revert "[cff-common] Optimize INDEX::operator[]" This reverts commit 9edb03ac7ac4b4d0814f3fd1f20cc8d2be99e971.
Behdad Esfahbod 9edb03ac 2022-05-10T14:25:08 [cff-common] Optimize INDEX::operator[]
Behdad Esfahbod 64d63ceb 2022-05-09T16:16:07 [cff-common] Use existing types for str_buff_vec_t
Behdad Esfahbod e1838ec1 2022-05-09T16:14:13 [cff-common] Remove unused method
Behdad Esfahbod 8aa54aac 2022-05-09T16:09:56 [cff] Replace byte_str_t with hb_bytes_t use
Behdad Esfahbod c8a5f1e3 2022-05-09T15:49:47 [cff-common] Indent
Behdad Esfahbod be7b2905 2022-05-09T15:48:18 [cff-common] Remove unused INDEX::serialize() method
Behdad Esfahbod 60390169 2022-05-09T15:44:09 [cff-common] Write str_buf_t::total_size() as dagger
Behdad Esfahbod 258afb45 2022-05-09T15:40:55 [cff-common] Use range-based loop in str_buff_vec_t
Behdad Esfahbod 8bb1a3ce 2022-05-09T15:38:40 [cff-common] Write INDEX offset-size calc using hb_bit_storage()
Behdad Esfahbod 2ccfe84e 2022-05-09T15:35:04 [cff-common] Add assert to INDEX::set_offset_at()
Behdad Esfahbod 4bcab9e9 2022-05-09T15:30:42 [cff-common] Use byte_str_t() instead of Null(byte_str_t)
Behdad Esfahbod 94f7a263 2022-05-09T15:29:14 [cff-common] Fix get_size() for Null object The special-casing didn't make sense.
Behdad Esfahbod c9cc7d5d 2022-05-09T15:27:27 [cff-common] Inline once-used method in INDEX
Behdad Esfahbod 11482a3a 2022-05-09T15:25:21 [cff-common] Remove unused method from INDEX
Behdad Esfahbod d1bb3b08 2022-05-09T15:23:59 [cff-common] Hide more INDEX internals
Behdad Esfahbod d3b21387 2022-05-09T15:22:55 [cff-common] Remove redundant operator implementation
Behdad Esfahbod a96b408d 2022-05-09T15:20:16 [cff-common] Hide INDEX internals
Behdad Esfahbod 335b1d83 2022-05-06T13:37:11 [cff-common] No need to check max-offset in INDEX The length_at() function makes sure out-of-range offsets are discarded. We just need to check the last offset.
Behdad Esfahbod 2884eb97 2022-05-06T12:54:02 [cff-common] Remove special-casing of count=0 in INDEX serialize The generic code-path now can handle count=0.
Behdad Esfahbod fc7f51ae 2022-05-06T12:53:19 [cff-common] Reduce iterator calls
Behdad Esfahbod c857b8e3 2022-05-06T12:50:37 [cff-common] Set INDEX min_size to 2 That is what it is, for an empty INDEX.
Behdad Esfahbod d8292b84 2022-04-27T12:38:35 [CFF] Fix parsing of empty Index https://github.com/harfbuzz/harfbuzz/issues/3545#issuecomment-1111047941
Behdad Esfahbod 035f0334 2022-01-18T09:26:30 [str_buff_vec_t] Remove unused fini method
Behdad Esfahbod 6d555ce8 2021-11-02T00:18:22 [meta] Use std::forward instead of hb_forward()
Behdad Esfahbod f0a1892f 2021-07-28T17:36:22 [serialize] Remove unnecessary pointer indirection
Behdad Esfahbod 6d941944 2021-02-19T17:08:10 Use auto in range-for-loop more
Ebrahim Byagowi 08428a15 2020-04-24T23:45:17 minor, spacing
Ebrahim Byagowi 2be859d2 2020-04-20T23:48:23 minor, replace nullptr checks with implicit ones
Ebrahim Byagowi 2dda6dd7 2020-04-20T14:12:45 minor, tweak spacing turn 8 spaces to tab, add space before Null/Crap
Ebrahim Byagowi a224f417 2020-03-13T08:33:34 Turn more of simple dagger chains to foreach Less noise, as was agreed before and applied 385741d also
blueshade7 4c3af7d4 2020-03-05T15:40:44 add "add_link()" with bias arg issue #2227
ariza e8f010d7 2020-03-04T16:54:27 removed unused code & data; rename
ariza c05458ec 2020-03-02T16:51:19 update cff & cff2 subsetters
ariza 002f0e20 2020-02-27T17:34:26 reimplment serialize_int using check_assign()
Ebrahim Byagowi ce114d6b 2019-12-31T15:53:02 minor, tweak spaces
Ebrahim Byagowi 2d7221a0 2019-10-01T15:05:02 [cff] minor
Ebrahim Byagowi 0558413f 2019-10-01T13:49:55 Minor, tweak spaces
Behdad Esfahbod 0e294c45 2019-09-06T16:54:27 Rename VAR to HB_VAR_ARRAY
Behdad Esfahbod c379faed 2019-09-06T16:41:12 Fix a few struct size declarations Was wrong. As excercised by defining VAR to other than 1 in hb.hh.
Michiharu Ariza 5763a927 2019-07-01T15:17:19 Merge branch 'master' into var-subset
Ebrahim Byagowi 3f806673 2019-06-29T00:00:00 Apply some minor improves on CFFIndex
Ebrahim Byagowi ddd29e55 2019-06-28T23:44:14 minor, reuse StructAtOffset logic in StructAtOffsetOrNull
Michiharu Ariza f3ee2bd0 2019-06-20T14:33:09 add ops & methods to hb_bimap_t making it more like hb_map_t moved has () to hb_bimap_t from hb_inc_bimap_t moved identity () to hb_inc_bimap_t removed forward()
Michiharu Ariza 09496695 2019-06-17T22:12:40 add hb_bimap_t, subclass hb_inc_bimap_t replacing CFF::remap_t
Ebrahim Byagowi 9b853f75 2019-06-09T11:49:25 [cff] Use switch on multi-format structs (#1762)
Michiharu Ariza 4ddab6fa 2019-06-05T11:21:27 Merge branch 'master' into var-subset
Michiharu Ariza 12febd68 2019-06-03T16:40:03 added parentheses to FDSelect::sanitize as well
Behdad Esfahbod 0ca7ad43 2019-05-20T11:39:07 [cff] Fix unlikely invocations
Behdad Esfahbod 0a01deb7 2019-05-13T18:04:09 One more warning fix No idea where these appear from...
Behdad Esfahbod 2fb3a832 2019-05-10T18:40:29 [vector] Simplify arrayZ Was turned into function when we had static ones and wanted to be move-safe... Not the case anymore.
Michiharu Ariza 9e79285e 2019-04-10T17:24:29 Merge branch 'master' into var-subset
Maks Naumov a96d003d 2019-04-05T12:29:56 Fix MSVC C4138 warning (#1657)
Michiharu Ariza a1177fec 2019-03-29T08:43:47 Merge branch 'master' into var-subset rebase master
Behdad Esfahbod b986c6a3 2019-03-29T20:17:46 [C++11] Remove IntType::set() in favor of operator=
Michiharu Ariza 9584b090 2019-03-15T13:46:25 cff2 subset fuzzer issues (#1619) * add check to FDArray::serialize * add test files * fix off by one
Michiharu Ariza 696b841a 2019-03-01T21:49:04 minor edits
Michiharu Ariza f1e97c18 2019-02-25T09:59:27 renamed hb_map2_t to hb_bimap_h in its own .hh
Michiharu Ariza 084be9a0 2019-03-21T10:21:31 Merge branch 'master' into var-subset
Michiharu Ariza bcb4e505 2019-03-15T13:46:25 cff2 subset fuzzer issues (#1619) * add check to FDArray::serialize * add test files * fix off by one
Michiharu Ariza 5ec65f77 2019-03-01T21:49:04 minor edits
Michiharu Ariza f289ffe5 2019-02-25T09:59:27 renamed hb_map2_t to hb_bimap_h in its own .hh
Michiharu Ariza c8420109 2019-02-20T15:48:29 subset HVAR Re-implemented & repurposed CFF:remap_t as hb_map2_t (moved to hb-ot-layout-common.hh) for two-way mapping for use by index map subsetting. Hooked up HVAR subsetter through _subset2. Some renaming in CFF code.
Michiharu Ariza 2e1965e5 2019-03-01T21:49:04 minor edits
Michiharu Ariza d817b446 2019-02-25T09:59:27 renamed hb_map2_t to hb_bimap_h in its own .hh
Michiharu Ariza 09df17e7 2019-02-20T15:48:29 subset HVAR Re-implemented & repurposed CFF:remap_t as hb_map2_t (moved to hb-ot-layout-common.hh) for two-way mapping for use by index map subsetting. Hooked up HVAR subsetter through _subset2. Some renaming in CFF code.
Behdad Esfahbod 0d2727f4 2019-01-14T18:23:17 fix FDSelect fuzzing bug (#1539) Rewrote struct FDSelect3_4.ranges as ArrayOf Updated FDSelect3_4::sanitize () to call ranges.sanitize () nRanges now a function to return a reference to ranges.len
Behdad Esfahbod fa333e34 2018-12-27T17:56:22 [vector] Remove static_array Was good idea, but with C++ types with constructor/destructor, was getting in the way as compiler was destructing those items where it was not desired. Since C++ does not allow zero-sized arrays, just remove it...
Michiharu Ariza 29f0b6bc 2018-12-22T07:47:04 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 21163c30e9d18759414f7fe2518628241599f039. * fix tabs
Behdad Esfahbod 474a1205 2018-12-21T18:46:51 [array/vector] Rename len to length
Ebrahim Byagowi e4120085 2018-12-17T21:31:01 Remove redundant void from C++ sources (#1486)
Ebrahim Byagowi b2ebaa9a 2018-12-16T22:38:10 Remove redundant 'inline' from methods (#1483)
Behdad Esfahbod 829b56b1 2018-12-15T13:02:13 Whitespace
Michiharu Ariza 798e98c4 2018-12-12T18:08:15 [CFF] bad offset in Index (#1476) * Update hb-ot-cff-common.hh * fix bug * bummer fix wasn't hit. refix * additional sanity check * Added test cases for oss-fuzz issues 11805, 11806
Michiharu Ariza 33358624 2018-12-11T12:20:20 minimize use of assert: removed or changed to error handling (#1467)
Michiharu Ariza 32cc46c7 2018-12-04T21:32:34 [CFF] fix oss-fuzz issue 11670: NULL dereference (#1450) * guard against no subr access * code tweak * add minimized testcase for oss-fuzz 11670 (Null deference)
Behdad Esfahbod e8860fdc 2018-11-30T23:38:24 Fix more warning
Behdad Esfahbod af349ee3 2018-11-30T23:20:50 Fix warning
Behdad Esfahbod 825df6db 2018-11-30T23:04:59 [CFF] Change spaces to tabs
Behdad Esfahbod 592f39b3 2018-11-30T22:54:57 [CFF] Whitespace
Michiharu Ariza 9d0231cf 2018-11-15T15:39:43 fixed a subset bug when no font dicts reduce
Michiharu Ariza ecdb77f0 2018-11-15T10:54:15 fixed CFF1 subset of std encoding & non-std charset combo
Michiharu Ariza 892ab37e 2018-11-14T13:54:07 Merge branch 'master' into cff-subset
Michiharu Ariza 0dfa584c 2018-11-12T08:47:07 changed Adobe company name
Michiharu Ariza 417963dd 2018-11-08T09:01:20 got rid of Remap::fullset() as incorrect, redundant, inefficient
Michiharu Ariza 0996c0ff 2018-11-07T14:48:37 implented no-desubroutinize with CFF2 along with API test replaced AdobeVFPrototype.abc.otf with a hinted (maually) & subroutinized copy replaced expected results as well
Michiharu Ariza b721fdae 2018-11-04T16:19:15 fixed leaks in CFF subr subset
Michiharu Ariza 191ca0f1 2018-11-03T22:42:22 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
Michiharu Ariza 34b06d99 2018-11-02T16:40:20 fixed FDSelect size calcluation
Michiharu Ariza 1bc710a8 2018-11-02T15:28:01 added CFF1 desubr api test cases & bug fixes
Michiharu Ariza d56e338a 2018-10-31T22:30:34 CFF1 no-desubroutinize + no-hinting no-desubroutinize option is disabled for now code cleanup (esp. CFF1 width handling) bug fixes & renaming
Michiharu Ariza 960267fc 2018-10-22T16:37:39 fix build attempt ^4
Michiharu Ariza b11032af 2018-10-22T15:52:37 fix build attempt ^2
Michiharu Ariza 3d3df557 2018-10-22T15:23:39 fix build attempt
Michiharu Ariza 35b64dfb 2018-10-02T14:13:36 silence & fix new warnings
Michiharu Ariza ab16b24c 2018-09-26T18:51:36 tweaked get_fd fix
Michiharu Ariza dac70f25 2018-09-26T16:30:26 Added CFF1 J font subset to api test Also fixed FDSelect3_4::get_fd Fixed test_subset_cff1_strip_hints (wrong font names!)