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


Log

Author Commit Date CI Message
Behdad Esfahbod d35dff02 2022-12-24T10:59:17 [cbdt] Remove extra clip
Behdad Esfahbod f70c5d6f 2022-12-24T10:56:06 [paint] Continue returning bool from paint_image() https://github.com/harfbuzz/harfbuzz/commit/6ccbfabd4fcc5d4cca99be10552c270205fd7792#commitcomment-94127307
Matthias Clasen 4816be9a 2022-12-24T07:37:04 Work around cairo limitations If we just draw an image, cairos recording surface complains that it is unbounded. Its not true of course. To make things work, clip to the extents.
Matthias Clasen 7996ae4c 2022-12-17T01:04:00 CBDT: Implement paint glyph
Behdad Esfahbod c5f90387 2022-12-22T12:16:55 [paint] Add bitmap width/height to paint_image callback Such that we can add raw data as well.
Behdad Esfahbod 237955df 2022-12-22T08:12:47 [paint] Add slant to image() callback And slant images in hb-view.
Matthias Clasen 6387004c 2022-12-21T16:43:19 [paint] Simplify api Drop the hb_paint_context_t struct from the API, and only pass the font where we need it.
Matthias Clasen 9be01b6b 2022-12-21T14:04:32 [paint] Pass hb_paint_context_t along Replace the font argument with a hb_paint_context_t that carries the font, the palette index and the foreground color. The hb_font_paint_glyph() api now takes the palette index and the foreground color as extra arguments. Update all callers and regenerate test results.
Matthias Clasen 97224f3b 2022-12-21T02:11:36 [paint] Pass font to all callbacks This will lead to easier implementations. At the same time, we change the push_clip_glyph callback to use the font as-is, no unscaling needed. Update all callers and expected test results.
Behdad Esfahbod 14bf3aaa 2022-12-18T12:59:35 [colr] Make paint_image work again
Behdad Esfahbod 7accbe97 2022-12-18T12:51:26 [util] Fix argument order and root transform PNGs
Matthias Clasen 0a2f3673 2022-12-17T13:51:23 [paint] Use tags for image formats This fits better with the rest of the HarfBuzz API.
Matthias Clasen 37f3f0fc 2022-12-17T11:49:18 [paint] Change the image callback Instead of passing the glyph ID, give it the image blob, a mimetype, and glyph extents (if available). Update all callers.
Behdad Esfahbod b0abbfd8 2022-12-22T07:26:14 [font] Centralize glyph-extents scaling Needs more testing... Some rounding was removed, namely in cff1 and cff2.
Behdad Esfahbod 59c45f6d 2022-11-22T12:54:50 Use hb_memcpy instead of memcpy consistently
Behdad Esfahbod d119568d 2022-11-20T14:11:51 [cbdt] Use vector tail()
Behdad Esfahbod ac1bb3e3 2022-01-20T11:47:17 [machinery] Move accelerators to constructor/destructor
Behdad Esfahbod e062376e 2022-01-19T17:09:34 [machinery] Make accelerator lazy-loader call Xinit/Xfini Instead of init/fini. To isolate those functions. To be turned into constructor/destructors, ideally one per commit (after some SFINAE foo.)
Behdad Esfahbod 63affc4e 2022-01-13T16:05:42 [vector] Move semantics when resizing
Behdad Esfahbod c852b868 2021-09-19T16:30:12 Rename HBGlyphID to HBGlyphID16
Behdad Esfahbod 2337f0d0 2021-07-08T10:58:50 Internally use hb_malloc/.../hb_free instead of malloc/.../free Redefining those stock names as macros was conflicting with gcc 10 headers. Fixes https://github.com/harfbuzz/harfbuzz/issues/3044
Behdad Esfahbod 2520a82d 2021-03-31T15:34:26 s/LArrayOf/Array32Of/g
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.
Behdad Esfahbod dfa9d7ac 2021-02-11T11:08:52 [minor] Use serializer->propagate_error() to simplify code
Garret Rieger fb147779 2020-07-31T14:00:38 [ENOMEM] Check result of vector resize in CBDT subsetting.
Ebrahim Byagowi 9fc774ab 2020-04-30T23:14:54 minor spacing
ckitagawa b22f61d8 2020-04-21T11:49:05 Fix bug
Ebrahim Byagowi 07acd1a0 2020-03-08T23:39:24 [subset] Rename src_base args to base to match sanitize methods So it will become easier to follow that serialize methods signatures should match with their sanitize methods counterparts.
ariza 188a0a47 2020-03-07T11:02:36 removed default base; replaced w/ bias if required
Ebrahim Byagowi bdf372b2 2020-03-08T00:47:25 [subset/cbdt] Release the referenced cbdt table on error Just accidentally spotted it, when the table has less than 4 bytes
Ebrahim Byagowi 71a20186 2020-02-05T17:15:50 [cbdt] minor, tweak spaces
Ebrahim Byagowi eaa2402a 2020-02-05T17:02:03 [cbdt] Merge hb-ot-color-cbdt-table.cc into its header file Not needed as far as can be said.
ckitagawa b114b26a 2020-02-04T09:49:24 Add guard to copy_glyph_at_idx
ckitagawa e128f802 2020-01-21T13:35:43 parent 777ba47b50f6379b9f9abf1d72559316b7116b9e author ckitagawa <ckitagawa@chromium.org> 1579631743 -0500 committer ckitagawa <ckitagawa@chromium.org> 1580506176 -0500 [subset] Add CBLC support
Ebrahim Byagowi ce114d6b 2019-12-31T15:53:02 minor, tweak spaces
Daeren 1770493c 2019-12-11T13:44:15 Fix unary minus operator applied to unsigned int Applying unary minus operator to unsigned int causes the following error on MSVS: error C4146 This patch fixes the error.
Ebrahim Byagowi d73cdcf3 2019-10-06T18:09:14 [ot-font] Apply font scaling before turning to int
Ebrahim Byagowi 0558413f 2019-10-01T13:49:55 Minor, tweak spaces
Ebrahim Byagowi d512087e 2019-09-14T10:36:29 Rename GlyphID to HBGlyphID Avoid collision with macOS's ATSUnicodeTypes.h GlyphID
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
Behdad Esfahbod dfc57802 2019-05-07T23:26:09 Fix more double-promotion errors WHy do only some of the clang bots catch this I have no idea :(.
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 9db7a7da 2019-01-28T14:09:59 Fix warning c:\projects\harfbuzz\src\hb-ot-color-cbdt-table.hh(59): warning C4146: unary minus operator applied to unsigned type, result still unsigned [C:\projects\harfbuzz\build\harfbuzz.vcxproj]
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 5c4fead7 2018-11-29T15:04:34 Convert "static const hb_tag_t" constants to enum
Behdad Esfahbod da6aa3b0 2018-11-11T11:40:57 Add hb_blob_ptr_t.destroy()
Behdad Esfahbod 0b0fad3e 2018-11-11T00:26:55 [color] Port to hb_blob_ptr_t Fix hb_blob_ptr_t::get_length () as well.
Behdad Esfahbod 0b0b38ec 2018-11-03T16:15:30 Fix null accelerator's Fixes all except for cmap. To be done separately. Part of https://github.com/harfbuzz/harfbuzz/issues/1146
Behdad Esfahbod dc9bd29f 2018-10-30T13:16:07 [CBDT] Implement Format18 get_extens Part of https://github.com/harfbuzz/harfbuzz/issues/1327
Behdad Esfahbod a2a7422a 2018-10-30T13:14:56 [CBDT] Bound checks in reference_png
Behdad Esfahbod 5eb251aa 2018-10-28T23:16:13 [cbdt] Implement strike selection logic
Behdad Esfahbod 8cffee05 2018-10-28T23:07:59 [cbdt] Simplify more
Behdad Esfahbod 574579d3 2018-10-28T23:04:37 [color] Rename get_strike() to choose_strike()
Behdad Esfahbod e2ba96da 2018-10-28T23:01:57 [cbdt] Refactor get_strike()
Behdad Esfahbod 6983cca9 2018-10-28T22:46:18 [cbdt] Minor
Behdad Esfahbod e998fb9f 2018-10-28T22:45:53 [color] Round extents when scaling
Ebrahim Byagowi c929ccfc 2018-10-29T08:41:13 [ot-color/png] Consider strike ppem on scaling
Ebrahim Byagowi 3d4c1f6a 2018-10-28T21:38:56 [ot-color] Apply Behdad reviews
Behdad Esfahbod c8380bd3 2018-10-28T15:20:33 [color] Remove more dump-emoji cruft
Behdad Esfahbod 73468418 2018-10-28T15:00:13 [cbdt] Rename reference_blob_for_glyph() to reference_png()
Ebrahim Byagowi 8ef0d2ef 2018-10-28T20:09:40 [ot-color] Apply Behdad comment
Ebrahim Byagowi 524e854c 2018-10-27T15:04:43 Merge pull request #1318 from ebraminio/png Add a non-hooked _png _svg get emoji blob
Ebrahim Byagowi 9435fb24 2018-10-27T13:32:14 [ot-color/png] Implement CBDT part
Ebrahim Byagowi 6a38fd68 2018-10-27T10:50:53 [ot-color/png] sbix runtime memory check
Ebrahim Byagowi 265ad408 2018-10-26T23:55:11 [ot-color/png] Implement sbix part
Behdad Esfahbod 39bd07ae 2018-10-26T21:01:11 Fix bunch of unused parameter warnings Show up with gcc -O0. There's a few more but those are functions that need to be filled in. Maybe this is a lost battle...
Behdad Esfahbod 4c27da76 2018-10-15T19:46:45 [CBDT] Fix more offsetting Fixes https://oss-fuzz.com/v2/testcase-detail/5750379279548416
Behdad Esfahbod fc812faa 2018-10-14T21:32:09 [CBDT] Fix more offsetting issues Fixes https://github.com/harfbuzz/harfbuzz/issues/960 dump-emoji still segfaults. Needs debugging.
Behdad Esfahbod 6aee3bb8 2018-10-14T21:08:42 [CBDT] Fix offset handling Fixes https://github.com/harfbuzz/harfbuzz/issues/960
Behdad Esfahbod da744c6b 2018-10-14T20:49:21 [CBDT] More UnsizedArrayOf cleanup
Behdad Esfahbod 2995b446 2018-10-14T20:37:57 [CBDT] Simplify sanitize
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 dff2c45f 2018-09-10T23:29:26 Port rest from VAR to UnsizedArrayOf<>
Behdad Esfahbod 9507b05a 2018-09-10T23:18:07 Simplify sanitize->check_array() Fix a bug in CBDT sanitize, and redundant check in avar.
Behdad Esfahbod 3a0b3a29 2018-08-26T15:11:24 Free up hb-ot-face.hh from includes There might be a better way to do this, but I couldn't find...
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 9583e007 2018-07-22T22:40:32 Port more off of Sanitizer<>
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<>().
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 8fd55422 2018-03-27T16:57:09 Implement an internal emojis dumper tool (#909) Later to be expanded to a more general tool but for now it only supports CBDT, SVG and CBDT.
Behdad Esfahbod 9e337341 2018-03-14T15:52:53 [color/cbdt] Clean up
Ebrahim Byagowi 0ef6ab25 2018-03-04T02:47:26 [ot-color] Move cbdt to the namespace (#860)