src/hb-subset.cc


Log

Author Commit Date CI Message
Behdad Esfahbod 521262b2 2019-05-07T11:08:08 [subset] Add TODO
Behdad Esfahbod 6977a95f 2019-04-27T10:05:25 [subset] Don't crash if subsetting GSUB/GPOS fails Fixes fuzzer issue.
Behdad Esfahbod 2b051e7a 2019-04-27T10:01:11 [subset] Check error after calling serializer end
Qunxin Liu 19afd250 2019-04-24T14:02:29 [subset] Update to use _subset2() for name table
Qunxin Liu 408c1dae 2019-03-29T10:34:32 [subset] subset name table step 1, write out table unmodified, use accelerator to access string
Behdad Esfahbod 19e800c9 2019-04-15T12:07:00 Ugh. Another try, to unbreak gcc this time! Jenga.
Behdad Esfahbod 3a88f55c 2019-04-15T11:59:57 Move location of HB_UNUSED to make MSVC happy
Behdad Esfahbod 47e538a3 2019-04-12T22:50:22 Add HB_NO_SUBSET_LAYOUT Part of https://github.com/harfbuzz/harfbuzz/issues/1652
Behdad Esfahbod 2e675cc7 2019-04-01T16:45:50 [subset] Call serialize start/end around it To be cleaned up.
Behdad Esfahbod fe05e480 2019-03-30T15:06:25 [serialize] Add ran_out_of_room
Garret Rieger 05e99c86 2019-01-28T17:05:04 [subset] A few small fixes for the new subset plan api.
Behdad Esfahbod 9aebfb41 2018-12-18T13:22:17 [serialize] Streamline error propagation
Behdad Esfahbod 42a10125 2018-12-13T19:39:59 [subset] Actually subset GDEF
Behdad Esfahbod 57610313 2018-12-12T21:21:26 [subset] Minor
Michiharu Ariza 9ae954f4 2018-11-30T15:00:52 Merge branch 'master' into cff-subset
Behdad Esfahbod 861bc753 2018-11-29T14:34:44 [vector] Make pointer cast explicit Too bad this doesn't help MSVC 2008 build, as explicit operators are C++11.
Michiharu Ariza b403be8a 2018-11-16T12:29:18 Merge branch 'master' into cff-subset
Ebrahim Byagowi 11aa0468 2018-11-15T23:10:56 [subset] minor, adjust spaces
Michiharu Ariza 1682d1bb 2018-11-04T13:25:41 Merge branch 'master' into cff-subset
Khaled Hosny 2c68f34b 2018-11-02T23:06:00 [os2] Capitalize table tag and struct Other tables follow the case of the OT tag, except this one.
Michiharu Ariza e600e544 2018-11-01T16:13:56 Merge branch 'master' into cff-subset
Behdad Esfahbod 3a4e5dd4 2018-10-29T18:05:25 Remove a few unnecessary hb_auto_t<>'s See a85641446c30247c4e948263f0f8c1147ed4efb9
Behdad Esfahbod 955aa56b 2018-10-25T16:50:38 [vector] Make it act more like pointer Add pointer cast operator and plus operator.
Michiharu Ariza 55942ad5 2018-10-06T14:49:44 Merge branch 'master' into cff-subset
Behdad Esfahbod 341206eb 2018-10-05T18:39:48 [vector] Make hb_vector_t relocatable / nestable Ugly, but... Fixes https://github.com/harfbuzz/harfbuzz/issues/1227
Michiharu Ariza f212c050 2018-09-20T09:45:43 Added VORG struct and its subsetter new file: hb-ot-vorg-table.hh
Behdad Esfahbod 20a11a82 2018-09-10T13:56:28 Revert "[subset] Disable GSUB/GPOS subsetting for now" This reverts commit 616fd34a69bb69bc35c7e4ea939e71c3ea2e92cb.
Behdad Esfahbod 616fd34a 2018-09-10T11:19:49 [subset] Disable GSUB/GPOS subsetting for now So I can get a release out. I haven't debugged those yet, and they are producing bad tables.
Michiharu Ariza 1e88b175 2018-09-07T10:50:55 Merge branch 'master' into cff-subset
Behdad Esfahbod 5f17dbc3 2018-09-07T10:24:22 [subset] Fix div-by-zero
Michiharu Ariza 22b88632 2018-09-06T22:27:44 Merge branch 'master' into cff-subset
Behdad Esfahbod 1e6599f5 2018-09-05T19:29:42 Fix older compilers re '>>' at nested template declarations
Behdad Esfahbod a1e5e07c 2018-09-05T16:24:28 [subset] Hook up GSUB/GPOS, but still disabled They are still in the drop list.
Behdad Esfahbod aba0a945 2018-08-31T13:25:19 [subset] Add hb-subset-input.hh and make hb-subset.hh toplevel include
Behdad Esfahbod 93fe0faa 2018-08-29T18:24:03 [subset] Clean up hb_subset_input_t API
Behdad Esfahbod d237ce71 2018-08-29T18:13:07 [subset] Bail if subsetting a table failed
Behdad Esfahbod f39166f0 2018-08-29T18:09:55 [subset] Remove unused hb_subset_profile_t We might reintroduce it later, but for now remove, as it was unused. Some things that should have been in this object (drop_hints, etc) are already in hb_subset_input_t. So, for now, keep everything there.
Michiharu Ariza 8af9690a 2018-08-29T13:26:17 Merge branch 'master' into cff-subset Renamed cff "private" source/headers without the suffix
Behdad Esfahbod dae39c58 2018-08-25T22:44:39 [face] Introduce character-map API New API: +hb_face_collect_unicodes +hb_face_collect_variation_selectors +hb_face_collect_variation_unicodes
Behdad Esfahbod c77ae408 2018-08-25T22:36:36 Rename hb-*private.hh to hb-*.hh Sorry for the noise, downstream custom builders. Please adjust.
Behdad Esfahbod b09a0336 2018-08-25T22:04:39 [cmap] More hb_auto_t<>(...)
Behdad Esfahbod 1dcf5fb0 2018-08-25T16:11:26 [cmap Add hb_subset_collect_variation_unicodes() To be moved to hb-face.h later.
Behdad Esfahbod 4806b380 2018-08-25T15:56:07 [cmap] Add hb_subset_collect_variation_selectors() To be moved to hb-face later.
Behdad Esfahbod d60c4656 2018-08-25T08:47:06 Rename get_all_codepoints() to collect_unicodes()
Behdad Esfahbod aadb2a91 2018-08-25T08:18:53 Add face-builder New API: +hb_face_builder_create +hb_face_builder_add_table
Michiharu Ariza e67bb3fb 2018-08-16T00:25:57 renamed OT::cff to OT::cff1 for consistency along with HB_OT_TAG_cff1
Michiharu Ariza fdbfa184 2018-08-16T00:13:09 renamed CFF version 1 structs and sources to CFF1 from CFF "CFF" is used for shared structs & sources between CFF1 & CFF2 except OT:cff is for CFF version 1 table
Michiharu Ariza 64c54122 2018-08-10T11:07:07 Added CFF support Added sources hb-ot-cff-table.hh, hb-subset-cff.cc & hh Templatized Index because CFF uses 16-bit count while CFF2 uses 32-bit Misc code cleanup & bug fixes
Michiharu Ariza 161ece4c 2018-08-06T11:23:50 Merge branch 'master' into cff-subset
Behdad Esfahbod b912fbea 2018-08-06T06:30:12 Remove most uses of direct comparison to Null objects
Michiharu Ariza e2fd49e4 2018-08-02T11:39:22 Merge branch 'master' into cff-subset
Behdad Esfahbod ed7b2e58 2018-08-01T23:59:09 Remove OT namespace from hb-machinery-private.hh
Michiharu Ariza 161b642e 2018-07-30T12:22:09 Merge branch 'master' into cff-subset
Behdad Esfahbod 9583e007 2018-07-22T22:40:32 Port more off of Sanitizer<>
Michiharu Ariza 3a61c3e9 2018-07-18T14:17:52 first push of CFF/CFF2 work Index, Dict structs hooked up to hb-subset (takes CFF2, outputs empty CFF2)
Behdad Esfahbod be458eb0 2018-07-10T14:41:04 Include more basic internal headers from hb-private.hh
Behdad Esfahbod bddeb2b1 2018-07-10T14:12:37 Minor renamings of internal inline functions
Behdad Esfahbod cc0b04f4 2018-06-12T18:24:54 [subset] Remove HB_SUBSET_BUILTIN Just include hb-static.cc in libharfbuzz-subset.so source list as well. Those building it built-in will include hb-static.cc once already. No need for any gymnastics.
Behdad Esfahbod b8e406f0 2018-06-10T17:22:38 More fixes for SunStudio 12.6 build Followup to https://github.com/harfbuzz/harfbuzz/pull/1053
Garret Rieger a5673da9 2018-06-07T14:23:03 [subset] Add drop_ot_layout setting to subset input.
Behdad Esfahbod f9abbf83 2018-06-02T15:30:59 Fix fallout from 975bdd5ef562e37655067b703b2b9ca7481f4985 Ouch!
Behdad Esfahbod f7515769 2018-06-01T17:48:37 [vector] Use Crap pool in push() as well
Garret Rieger 251cc977 2018-05-30T12:23:51 [subset] Switch to using hb_map_t inside of hb_subset_plan_t.
Behdad Esfahbod fd3d0042 2018-05-24T15:58:26 Move pool definitions to hb-static.cc
Behdad Esfahbod 7f7b1370 2018-05-24T14:09:04 Fix Uniscribe build If a pointer type was passed to Null(), reinterpret_cast<> was complaining about qualifiers being removed. Turns out I need the const on the other side of "Type" to fix that. Also remove unused const from NullPool type.
Behdad Esfahbod f83e992c 2018-05-24T11:46:57 Mark CrapPool thread_local Not sure if I like to keep it. For now, aim for correctness.
Behdad Esfahbod 5d801298 2018-05-24T11:33:15 Add CrapPool Common Regoin for Access Protection. Like the NullPool, but writable.
Behdad Esfahbod 63f57f4d 2018-05-08T16:56:11 Mark more unsized array's as arrayZ
Behdad Esfahbod eba1c16a 2018-05-08T02:47:42 Always lock blob in sanitize. Remove blob->lock_as() in favor of blob->lock()
Behdad Esfahbod b4fa5050 2018-05-08T02:45:08 Move Sanitizer::lock_instance<>() to blob->lock_as<>().
Behdad Esfahbod abc12f7b 2018-05-08T02:23:36 Move null pool to hb-private
Behdad Esfahbod 5c3112ae 2018-05-01T19:07:04 s/hb_prealloced_array_t/hb_vector_t/g Part of https://github.com/harfbuzz/harfbuzz/issues/1017
Behdad Esfahbod a60ba796 2018-05-01T19:01:25 s/finish/fini For consistency.
Garret Rieger 21a181af 2018-04-10T15:40:24 [subset] sketch out support for a call that lists all codepoints present in a font. Implement support for it in format 4 cmap sub table.
Garret Rieger 1c337278 2018-03-27T10:42:19 [subset] fix infinite loop bug in looping through tables for subsetting.
Garret Rieger 07851aae 2018-03-26T20:56:56 [subset] Couple of fixes for fuzzer discovered issues. (#924) * [subset] sanitize individual DeviceRecord's as part of hdmx sanitization. * [subset] Fix out of bounds read with non-two byte align glyphs. * [subset] Just use size_device_record >= DeviceRecord::min_size. * [subset] Add TODO. * [subset] Re-order checks in hdmx sanitize.
Behdad Esfahbod e4d1cbfb 2018-03-26T14:09:29 Add HB_SUBSET_BUILTIN Fixes https://github.com/harfbuzz/harfbuzz/issues/865
Garret Rieger 7251181b 2018-03-20T11:21:06 [subset] Fix infinite loop in there are more then 32 tables.
Garret Rieger 39b2f69f 2018-03-08T16:30:36 [subset] Drop the same tables by default as fontTools does.
Garret Rieger dd107699 2018-03-06T18:33:39 [subset] drop all glyph names from the post table.
Garret Rieger 91867cda 2018-03-07T10:17:06 [subset] cleanup.
Garret Rieger 0e8f9430 2018-03-06T13:08:20 [subset] Skip subsetting vhea.
Garret Rieger 64cf53d6 2018-03-02T17:33:49 [subset] Subset vmtx if present.
rsheeter 4a1d51ef 2018-02-26T20:23:41 Merge pull request #818 from googlefonts/drophints [subset] Drop hints
Behdad Esfahbod df1c7d5b 2018-02-25T19:06:25 Minor
Rod Sheeter d78393b5 2018-02-23T17:53:26 Merge branch 'master' of https://github.com/harfbuzz/harfbuzz into drophints
Behdad Esfahbod dc5c7927 2018-02-23T16:42:06 [subset] Caclculate head table checksum adjustment Test still fails, because we do not serialize tables in the same order that fonttools subsetter does.
Garret Rieger 66b0a390 2018-02-23T15:41:52 [subset] Fix memory leak in hb-subset.
Garret Rieger 5a36b55f 2018-02-23T15:30:14 [subset] Fix memory leak in subset face destroy.
Rod Sheeter 9bd6d252 2018-02-23T13:05:58 [subset] clone trim logic from fonttools glyf handling
Garret Rieger ec302ad5 2018-02-22T11:57:35 [subset] Fail subset if a table fails to sanitize.
Garret Rieger aa4aa235 2018-02-21T17:43:32 [subset] Enable hdmx subsetting.
Garret Rieger fe42862a 2018-02-21T14:18:49 [subset] Sketch out a basic hb-ot-hdmx.hh.
Rod Sheeter 2d026524 2018-02-21T09:42:46 [subset] keep the result of _subset
Rod Sheeter 74e0c13a 2018-02-21T11:19:18 [subset] drop hint tables if so flagged. Still need to dump glyf instructions.
Rod Sheeter 7ecca8c0 2018-02-21T09:42:46 [subset] keep the result of _subset
Garret Rieger e3e0ac98 2018-02-20T14:07:40 [subset] Move glyf subsetting code into hb-ot-glyf-table.hh
Behdad Esfahbod 0bff6991 2018-02-19T11:51:25 Ugh. Really fix build.
Garret Rieger e330ef37 2018-02-14T15:57:11 [subset] Restore hb_face_data_destroy to be internal.
Rod Sheeter 3ed70e5e 2018-02-14T15:24:49 [subset] return bool not hb_bool_t from table::subset