src/hb-ot-color-colr-table.hh


Log

Author Commit Date CI Message
Behdad Esfahbod ae9fc7f5 2022-01-20T12:37:21 Clean accelerators a bit more
Garret Rieger 87496bf6 2022-01-13T11:03:45 [subset] fix fuzzer timeout if visisted_paint goes into error.
Qunxin Liu 51655a07 2021-12-05T19:27:57 [subset] COLR : only include glyphs after COLR closure
Behdad Esfahbod 82a9f544 2021-11-10T10:15:38 [colr] Simplify sanitize
Garret Rieger 64b29dbd 2021-11-09T09:13:14 [subset] reuse colrv1 max nesting depth constant for sanitize.
Garret Rieger ace98cc6 2021-11-08T15:47:56 [subset] Only sanitize recursion depth in COLR.
Qunxin Liu 0a7563a5 2021-11-01T14:56:14 [subset] fuzzer fix: https://oss-fuzz.com/testcase?key=6254792024915968 Make sure input is valid, each gid has a corresponding offset value in the map
Behdad Esfahbod 6d555ce8 2021-11-02T00:18:22 [meta] Use std::forward instead of hb_forward()
Qunxin Liu 85deddb1 2021-10-27T14:36:02 [subset] fuzzer fix: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=40406
Qunxin Liu f55d8347 2021-10-14T13:39:45 [subset] Move struct DeltaSetIndexMap into hb-ot-var-common.hh Also fix naming issues in review comments
Qunxin Liu 8c583db9 2021-10-02T20:32:30 [subset] COLRv1: update subset() method for new strutc ClipList and VarIdxMap Also fix issues in struct PaintTransform definition
Qunxin Liu e51c7f8e 2021-09-30T10:42:17 [subset] COLRv1: add ClipList/ClipRecord/ClipBox struct definition
Qunxin Liu 2e5636ee 2021-08-04T14:51:52 [subset] add DeltasetIndexMap struct definition
Qunxin Liu d2e986fe 2021-08-03T16:31:42 [subset] update COLRv1 table struct definitions
Behdad Esfahbod c852b868 2021-09-19T16:30:12 Rename HBGlyphID to HBGlyphID16
Behdad Esfahbod cc3a7cee 2021-07-28T11:53:06 Fix macro-in-macro invocation ../src/hb-ot-color-colr-table.hh:980:2: error: embedding a directive within macro arguments has undefined behavior [-Werror,-Wembedded-directive] \#if COLRV1_ENABLE_SUBSETTING == 1
Garret Rieger f3e03153 2021-07-27T14:40:15 Revert "[ci] Bin FontTools version due to recent COLRv1 changes" This reverts commit 163748b5059e7b02a8ea57e263b009020a3ed499.
Garret Rieger acbd8b27 2021-07-27T14:31:18 [subset] temporarily disable COLRv1 subsetting. Currently COLRv1 spec is being changed so the subsetting implementation is out of sync. Disable subsetting by failing sanitization for COLRv1 tables and disable all colrv1 tests.
Qunxin Liu 35d6af69 2021-06-04T10:04:27 [subset] fix fuzzer testcase: https://oss-fuzz.com/testcase-detail/5965777994907648
Qunxin Liu 1b6008ca 2021-06-02T15:07:18 fix fuzzer testcase: https://oss-fuzz.com/testcase-detail/5417934246772736
Qunxin Liu f739e1dc 2021-05-11T11:44:32 [subset] subset both CPAL and COLRv1
Qunxin Liu b23f29bf 2021-04-17T09:59:45 [subset] Add subset () method for COLRv1 Paint tables, BaseGlyphV1List and LayerV1List Also add support for Offset24 in serializer and repacker
Garret Rieger de0eba20 2021-05-12T14:05:34 Remove array for visited_paint.
Qunxin Liu e59ffe54 2021-04-01T12:01:19 [subset] COLRv1 layer/palette indices closure
Qunxin Liu 430a67ce 2021-04-01T12:01:19 [subset] COLRv1 struct definitions
Behdad Esfahbod ad28f973 2021-03-31T12:49:14 Rename offset types to be explicit about their size Add Offset16To<>, Offset24To<>, and Offset32To<> for most use-cases.
ckitagawa b198d944 2021-01-25T16:34:11 use {} rather than {0}
ckitagawa 2e50b517 2021-01-25T16:19:07 Nicer more idiomatic fix
ckitagawa 8f6559a3 2021-01-25T10:37:59 [subet/COLR] Default initialize firstLayerIdx
Ebrahim Byagowi a6fb8ce9 2020-07-04T23:43:21 Minor, fix -Wrange-loop-analysis warnings Fixing these complains raised by newer versions of clang, ./hb-ot-layout-common.hh:1720:53: error: loop variable 'gid_klass_pair' is always a copy because the range of type 'hb_map_iter_t<hb_sorted_array_t<OT::HBGlyphID>, (lambda at ./hb-ot-layout-common.hh:1672:29), hb_function_sortedness_t::RETAINS_SORTING, nullptr>' does not return a reference [-Werror,-Wrange-loop-analysis] for (const hb_pair_t<hb_codepoint_t, unsigned>& gid_klass_pair : + it) And ./hb-ot-color-colr-table.hh:177:44: error: loop variable '_' is always a copy because the range of type 'hb_map_iter_t<hb_filter_iter_t<hb_map_iter_t<hb_range_iter_t<unsigned int, unsigned int>, (lambda at ./hb-ot-color-colr-table.hh:209:31), hb_function_sortedness_t::RETAINS_SORTING, nullptr>, (anonymous struct at ./hb-algs.hh:331:1) &, (anonymous struct at ./hb-algs.hh:51:1) &, nullptr>, (anonymous struct at ./hb-algs.hh:338:1) &, hb_function_sortedness_t::RETAINS_SORTING, nullptr>' does not return a reference [-Werror,-Wrange-loop-analysis] for (const hb_item_type<BaseIterator>& _ : + base_it.iter ())
Ebrahim Byagowi 21e1b131 2020-02-11T17:08:55 [colr] minor style fix
Ebrahim Byagowi cbb45c3e 2020-02-11T16:46:14 [subset/colr] minor improve to resolve msvc complain MSVC says, hb-ot-color-colr-table.hh(215): warning C4700: uninitialized local variable 'new_record' used [build\harfbuzz-subset.vcxproj] harfbuzz-subset.vcxproj -> build\Debug\harfbuzz-subset.lib
ckitagawa 92f43a99 2020-01-29T16:06:55 [subset] COLR, simplify logic and use add_array
ckitagawa fba5128a 2020-01-29T10:24:55 Fix build
ckitagawa 7d542a52 2020-01-29T10:20:00 Refactor to two iterators
ckitagawa 0aed54dc 2020-01-24T15:51:06 Use one-liner methods
ckitagawa 81c469eb 2020-01-24T15:49:25 Try to fix Wrange-loop-analysis
ckitagawa 0d1ba94a 2020-01-24T15:44:40 Minor style fixes
ckitagawa ed857c46 2020-01-24T08:52:23 [subset] Add COLR support
Ebrahim Byagowi d512087e 2019-09-14T10:36:29 Rename GlyphID to HBGlyphID Avoid collision with macOS's ATSUnicodeTypes.h GlyphID
Ebrahim Byagowi d67201da 2019-07-30T17:20:18 [colr] minor
Ebrahim Byagowi e5cf9718 2019-07-30T04:44:23 [colr][feat][meta] Port sub_array iteration to dagger (#1868)
Ebrahim Byagowi 92588782 2019-04-30T13:05:10 Remove space between right angle brackets now that we have C++11 (#1689)
Behdad Esfahbod ef006549 2019-01-22T12:08:57 Convert tag enum class consts to static constexpr Part of https://github.com/harfbuzz/harfbuzz/issues/1553
Behdad Esfahbod b1152d5e 2019-01-17T18:17:04 Use NNOffsetTo<>
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 5c4fead7 2018-11-29T15:04:34 Convert "static const hb_tag_t" constants to enum
Behdad Esfahbod ae96c98d 2018-11-24T10:25:10 [color] Use SortedUnsizedArrayOf<>
Ebrahim Byagowi 1d82b476 2018-11-10T18:08:11 [colr/feat/trak] minor
Behdad Esfahbod 17ffbc07 2018-10-22T21:22:25 [color] Use Index for colorIdx Doesn't matter, but matches the description.
Behdad Esfahbod 3bf91bd2 2018-10-22T12:40:38 [color] Rewrite colr access COLR table has one function: return layers for a glyph, and we expose exactly that, so should just wire it through. Also use sub_array() for verifiable safety. Also, BaseGlyphRecord's null object is enough. We don't need to special-case the not-found.
Behdad Esfahbod 3b3668ac 2018-10-21T19:23:11 [color] Rename / reorder a bit Implement has_data() for realz.
Behdad Esfahbod 228fa71b 2018-10-21T17:43:29 [colr] Move sanitize
Behdad Esfahbod b92b9d7e 2018-10-21T17:42:51 [colr] Move compare function into a static Not sure if MSVC would be unhappy about this.
Behdad Esfahbod b6b17173 2018-10-21T17:41:49 [colr] Minor
Behdad Esfahbod a6ade347 2018-10-21T17:39:39 [colr] Move sanitize() to right place Sanitize always comes just before data member definitions, so it's easy to cross-check.
Behdad Esfahbod 24adc157 2018-10-21T17:39:00 [colr] Touch up a bit When a struct is plain old data with no references, etc, it's okay to mark its members public.
Khaled Hosny d4e928b1 2018-05-01T17:16:46 [color] Minimal API for COLR/CPAL
Behdad Esfahbod 10642b3f 2018-09-15T19:43:33 Disallow null-enabled offsets to unsized structures... ...like UnsizedArrayOf<>. This fixes a class of crasher bugs, mostly with color and AAT tables. We cannot use nullable offsets to varsized data that does not declare min_size, because it's nost safe to use our fixed-size null pool for types that have their size external. So, use non_null'able offsets for these. A further enhancement would be to make use of min_size in Null<> itself. Will try that after.
Behdad Esfahbod c77ae408 2018-08-25T22:36:36 Rename hb-*private.hh to hb-*.hh Sorry for the noise, downstream custom builders. Please adjust.
Ebrahim Byagowi a47070cd 2018-04-18T12:09:37 Minor, annotate the added tables with likely/unlikely (#997)
Behdad Esfahbod 92480316 2018-04-17T15:32:02 [colr] Check layer record access
Ebrahim Byagowi a02c3ee7 2018-04-12T13:38:19 Add or update tables specifications links
Ebrahim Byagowi a62554af 2018-04-10T00:53:50 [colr/cpal] Improvements and add a sample renderer (#927)
Behdad Esfahbod 6418ae4e 2018-03-14T16:18:42 [color/COLR] Clean up
Behdad Esfahbod 56946d21 2018-03-14T16:26:33 [color/COLR] Simplify
Behdad Esfahbod 150c53ee 2018-03-14T16:08:12 [color/COLR] Fix bad sanitize Bad bad bad bad code. Don't do that. If compiler's not happy, understand why.
Behdad Esfahbod 399c800b 2018-03-14T16:03:01 [color/COLR] Clean up
Behdad Esfahbod e4cbb87b 2018-03-07T09:37:22 Minor
Ebrahim Byagowi 54cbe670 2018-03-06T16:41:08 [ot-color] Further improvements on COLR/CPAL implementation (#859) * Implemented a bsearch on get_base_glyph_record * Made get_color_record_argb actually work
Ebrahim Byagowi c446c23f 2018-03-03T22:43:23 [ot-color] Move the related tables to hb-ot-color-* (#858)