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


Log

Author Commit Date CI Message
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 56946d21 2018-03-14T16:26:33 [color/COLR] Simplify
Behdad Esfahbod 6418ae4e 2018-03-14T16:18:42 [color/COLR] Clean up
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)