src/hb-subset.cc


Log

Author Commit Date CI Message
Ebrahim Byagowi 11aa0468 2018-11-15T23:10:56 [subset] minor, adjust spaces
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.
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.
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
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.
Behdad Esfahbod 5f17dbc3 2018-09-07T10:24:22 [subset] Fix div-by-zero
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.
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
Behdad Esfahbod b912fbea 2018-08-06T06:30:12 Remove most uses of direct comparison to Null objects
Behdad Esfahbod ed7b2e58 2018-08-01T23:59:09 Remove OT namespace from hb-machinery-private.hh
Behdad Esfahbod 9583e007 2018-07-22T22:40:32 Port more off of Sanitizer<>
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
Rod Sheeter d463e9f6 2018-02-14T15:04:15 [subset] Give Behdad credit again
Rod Sheeter fa877703 2018-02-14T14:16:25 [subset] First pass at hmtx
Garret Rieger d008b628 2018-02-14T10:38:52 Merge remote-tracking branch 'upstream/master' into fixed
Garret Rieger 89f17e39 2018-02-12T18:14:50 [subset] capitalize dsig.
Garret Rieger df6d7803 2018-02-12T17:56:17 [subset] Extract maxp subsetting into hb-ot-maxp-table.
Garret Rieger 24904383 2018-02-12T17:31:01 [subset] Correct usFirstCharIndex and usLastCharIndex in OS2 table when subsetting.
Behdad Esfahbod d5b33f2f 2018-02-13T13:50:50 [subset] hb_subset_input_t changes
Behdad Esfahbod 3d66f441 2018-02-12T18:43:42 [subset] Remove unreachable code sanitizer.sanitize never return nullptr.
Rod Sheeter 1330edc4 2018-02-12T14:29:23 Use functions to get new gids. Avoid 0; fonttools drops it from cmap.
Rod Sheeter 692f86e5 2018-02-12T11:29:23 drop GDEF, GPOS, GSUB, and dsig
Garret Rieger 83e1ef92 2018-02-12T11:22:32 [subset] Set the new number of glyphs in maxp.
Garret Rieger 5df080bf 2018-02-12T10:15:59 Destroy the subset plan at the end of subsetting.
Rod Sheeter ebd31d37 2018-02-12T10:10:08 subset for real
Ebrahim Byagowi 203b6475 2018-02-11T01:00:03 Favor use of static instead HB_INTERNAL
Behdad Esfahbod 43314ff4 2018-02-10T15:40:03 More fixes test-subset-glyf still failing. No idea why :(
Behdad Esfahbod a981d798 2018-02-10T15:17:28 Fix more build issues Hopefully most bots come back with this...
Ebrahim Byagowi 6c4ca613 2018-02-11T00:42:06 Hide more symbols of hb-subset (#771)
Behdad Esfahbod bfa87163 2018-02-10T13:37:28 Minor
Ebrahim Byagowi 844f48ea 2018-02-10T23:13:12 Fix symbol exporting and libstdc++ linkage of hb-subset (#769)
Rod Sheeter 9275bd03 2018-02-09T17:33:34 First pass at building a cmap
Garret Rieger d2170d14 2018-02-09T17:24:16 Check for failures from add table.
Garret Rieger 86aa4b3b 2018-02-09T13:54:43 Return empty face on hb_subset failure instead of null. Plus some minor cleanups for _add_head_and_set_loca_version
Garret Rieger 1582eabe 2018-02-09T12:52:08 Update head table with loca format selected by glyf+loca subsetting.
Garret Rieger 335bbaa6 2018-02-09T10:55:15 Remove uneeded code in hb-subset.
Rod Sheeter 59c658c8 2018-02-08T19:22:47 capture codepoints sorted so we can use them for cmap later. one day we will have a map
Garret Rieger aac7d962 2018-02-08T18:18:16 Apply per table subsetting while building the new face in hb_subset.
Behdad Esfahbod 9682ef13 2018-02-08T17:35:57 Minor fixups
Garret Rieger f9c665fe 2018-02-07T16:53:18 Update interface to hb-subset-glyf to subset glyf and loca.
Rod Sheeter 13193a9b 2018-02-07T16:09:52 move to the hb_face_t dest pattern
Rod Sheeter 0859a006 2018-02-07T15:59:36 sketch a subset<T> and call it for cmap. Add subset to cmap, albeit not working even for the msot basic case just yet
Behdad Esfahbod 39b86695 2018-02-07T21:37:03 [subset] Fix thinko