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


Log

Author Commit Date CI Message
Behdad Esfahbod 997d9cc4 2022-06-02T18:04:12 [map] Make unique_ptr hashable
Behdad Esfahbod 371e14d9 2022-05-28T13:40:30 Combine uses of map has() then get() with has(.., &..)
Garret Rieger b051f3fa 2022-05-05T23:27:34 [subset] Fix cpal subsetting when there are partial palette overlaps. The existing code doesn't correctly handle the case where palettes partially overlap in the color record array. This changes the subsetting to only share entries in the color record array when palettes have the same first color index. Partially overlapping palettes will be converted to disjoint segments in the color record array. Updates one of the color tests to use multiple palettes. Also fixes fuzzer: https://oss-fuzz.com/testcase-detail/5568200165687296.
Garret Rieger 280366ba 2021-08-18T15:50:49 Add TODO to update NN offsets to allow nulls.
Garret Rieger dc31920b 2021-08-18T14:20:14 Don't serialize null offsets in CPAL. Fixes https://oss-fuzz.com/testcase-detail/5443213648330752
Qunxin Liu 7416face 2021-07-07T11:27:49 [subset] fuzzer fix: https://oss-fuzz.com/testcase-detail/5715464591376384
Qunxin Liu f739e1dc 2021-05-11T11:44:32 [subset] subset both CPAL and COLRv1
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.
Ebrahim Byagowi b2d0dba5 2020-06-20T12:07:42 [cpal] Port to dagger
Ebrahim Byagowi 2dda6dd7 2020-04-20T14:12:45 minor, tweak spacing turn 8 spaces to tab, add space before Null/Crap
Ebrahim Byagowi 0558413f 2019-10-01T13:49:55 Minor, tweak spaces
Ebrahim Byagowi a0b4ac4d 2019-08-24T17:57:14 Turn 8 spaces to tab across the project According to the current code style of the project
Ebrahim Byagowi 521c7013 2019-07-30T18:10:40 [cpal] revert port to dagger It has a different semantic, maybe we should just do a zero memset, letting Behdad to decide.
Ebrahim Byagowi 8014ce19 2019-07-30T17:31:34 [cpal] port to dagger (#1887)
Behdad Esfahbod 41248cce 2019-05-07T20:54:31 Remove MIN/MAX in favor of hb_min/hb_max
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<>
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)
Ebrahim Byagowi 7ee5c523 2018-12-12T15:14:37 minor style fix, use void in methods on no argument
Behdad Esfahbod fb059082 2018-11-30T20:45:40 Revert ugly fixes Now that we have 6daf45e0, revert cryptic hacks... This reverts commit abd81ed4f5cbc5a94171747909bc6b77551cb929. This reverts commit 9c6921c08c905a0cf45ba0182134e6ff910fac51. This reverts commit d39760cabfe4007cefdfc45231e85e93fababac2. This reverts commit fedd8e6c176dea85194693399e50243eb1c117c4. Fixes https://github.com/harfbuzz/harfbuzz/issues/1374
Behdad Esfahbod fedd8e6c 2018-11-30T16:50:30 One more......... I wonder if there's something better to do about these :(. In file included from hb-ot-color.cc:31: hb-ot-color-cpal-table.hh: In member function 'unsigned int OT::CPAL::get_size() const': hb-ot-color-cpal-table.hh:118: error: ISO C++ says that these are ambiguous, even though the worst conversion for the first is better than the worst conversion for the second:
Behdad Esfahbod 5c4fead7 2018-11-29T15:04:34 Convert "static const hb_tag_t" constants to enum
Behdad Esfahbod 72462eb7 2018-11-02T11:46:24 Add UnsizedArrayOf::as_array() instead of hb_array() template
Behdad Esfahbod a7aba99b 2018-10-30T14:04:09 [name] Rename hb_name_id_t to hb_ot_name_id_t https://github.com/harfbuzz/harfbuzz/pull/1254
Behdad Esfahbod 6ce49a92 2018-10-28T08:26:30 [name] Change hb_name_id_t back to unsigned int https://github.com/harfbuzz/harfbuzz/commit/d941f66c75fe26f909b1ba248535cc372bbde851#commitcomment-31076011
Behdad Esfahbod d941f66c 2018-10-27T02:55:52 [name] Make hb_name_id_t be the enum This is like hb_script_t. We had this exposed as unsigned int since 2.0.0 release in two APIs, as well as hb_ot_layout_get_size_params() from earlier. But since no one uses those (right?!), let's just fix this now.
Behdad Esfahbod 8d689f8a 2018-10-22T21:33:18 Add hb_array<>() specialization for UnsizedArrayOf Related https://github.com/harfbuzz/harfbuzz/issues/1301
Behdad Esfahbod abfbba19 2018-10-22T21:27:45 Add hb_array<>() Simplifies transient object creation. Fixes https://github.com/harfbuzz/harfbuzz/issues/1301
Behdad Esfahbod 07386ea4 2018-10-22T21:18:27 Remove const and references when binding Null() Fixes https://github.com/harfbuzz/harfbuzz/issues/1299 Removes anomaly I was seeing in cpal table trying to use implicit Null(NameID).
Behdad Esfahbod 228f96c9 2018-10-22T16:55:12 [color] Finish reviewing / revamping CPAL Now to hb_color_t.
Behdad Esfahbod 14474d21 2018-10-22T16:30:30 [color] Rely on CPALV1Tail Null object
Behdad Esfahbod f3336580 2018-10-22T16:16:21 [color] Use hb_array_t in CPAL Doesn't work though, ouch :(. Need to figure out if it's unreasonable to expect Null(T) inside hb_array_t<T> to see the later specialization of Null for NameID.
Behdad Esfahbod 5ae18855 2018-10-22T14:54:55 [color] Check for null CPAL arrays We cannot use a nullable offset here though.
Behdad Esfahbod 69ab72e4 2018-10-22T14:51:40 [color] More CPAL rename
Behdad Esfahbod 0befb06c 2018-10-22T14:46:21 [color] More CPAL rename
Behdad Esfahbod 3600d206 2018-10-22T14:43:12 [color] Rename vars in CPAL
Behdad Esfahbod 3b3668ac 2018-10-21T19:23:11 [color] Rename / reorder a bit Implement has_data() for realz.
Ebrahim Byagowi 37ba2413 2018-10-21T11:46:51 Minor
Ebrahim Byagowi b8ee3a0e 2018-10-21T09:44:16 [CPAL] Add palette entry and enable palette flag API
Ebrahim Byagowi 456978d4 2018-10-21T08:26:40 Address COLR/CPAL reviews and revive cpal_v1 tests
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)
Ebrahim Byagowi a02c3ee7 2018-04-12T13:38:19 Add or update tables specifications links
Ebrahim Byagowi f8bb582b 2018-04-11T17:13:20 [ot-color] Cosmetic changes (#962)
Ebrahim Byagowi a62554af 2018-04-10T00:53:50 [colr/cpal] Improvements and add a sample renderer (#927)
Behdad Esfahbod 23a9ac99 2018-03-07T15:51:42 Remove hb-ot-color.h So I can make a release.
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)