src/hb-subset.cc


Log

Author Commit Date CI Message
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 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.
Garret Rieger 89f17e39 2018-02-12T18:14:50 [subset] capitalize dsig.
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
Behdad Esfahbod c479a599 2018-02-07T21:13:10 [subset] Assemble font
Behdad Esfahbod 577becaf 2018-02-07T17:38:40 [subset] Fixup
Behdad Esfahbod 7fd0b61d 2018-02-07T16:44:52 [subset] Create new face and copy all tables to it test-subset fails now because subset-face does not know how to compile itself.
Behdad Esfahbod b87cbe2b 2018-02-07T14:11:26 Try fixing build for platforms that have no visibility attributes
Behdad Esfahbod 6804b61d 2018-02-07T13:47:35 [subset] Add hb_subset_face It's a hb_face_t that has add_table() and in the future knows how to compile itself into a font blob.
Behdad Esfahbod af02812f 2018-02-07T13:07:46 [subset] Change hb_subset API to remove hb_subset_face_t
Behdad Esfahbod 2da0d87e 2018-02-07T12:44:35 Remove NullPool visibility hack We keep a separate private NullPool in libharfbuzz-subset.so This can fire back later since now there are two separate null objects, and comparisons to the null pool can be confused. Something to deal with when it comes up. Ouch!
Rod Sheeter 91428713 2018-02-07T09:35:59 Remove \ns leftover from fprintf
Rod Sheeter eb485bb9 2018-02-07T09:32:36 Horrid hack to assign new gids. Use DEBUG_MSG over fprintf
Garret Rieger 53aa0e95 2018-02-06T17:05:22 Add an instance of glyf::accelerator_t to hb-subset-glyf.
Rod Sheeter d0ce3c66 2018-02-06T16:58:35 Resolve codepoints:glyph ids. Does not compile; undefined reference to OT::_hb_NullPool
Garret Rieger 6a45e5df 2018-02-06T16:04:09 Add skeleton of hb-subset-glyf, call if from hb_subset(...)
Garret Rieger 31ec3c2e 2018-02-06T15:37:34 Create a subset plan in hb_subset.
Garret Rieger af46a4da 2018-02-05T17:14:46 Move definition of hb_subset_input into hb-subset-private.hh.
Garret Rieger 7481f0ce 2018-02-05T16:05:12 Add codepoints to subset input.
Garret Rieger 8c3a6727 2018-01-31T15:43:24 Get test-subset to pass.
Garret Rieger 74d39ed2 2018-01-31T15:20:52 Attach add a hb_face_t to hb_subset_face_t.
Garret Rieger a2965f2e 2018-01-31T14:53:09 Add a basic implementation of hb-subset to enable compilation of test-subset.
Rod Sheeter 9ccb8366 2018-01-17T22:09:07 Start to sketch APIs for subsetting