test/api/test-ot-color.c


Log

Author Commit Date CI Message
Matthias Clasen 00e93102 2022-12-26T08:31:22 Add a test for hb_ot_color_glyph_has_paint
Matthias Clasen e7b0947a 2022-12-26T08:24:39 Add a test for hb_ot_color_has_paint
Matthias Clasen c2219339 2022-12-21T18:39:27 [paint] Preserve foreground information
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 71bd5a0d 2022-12-21T16:18:46 [paint] Resolve colors We don't need to pass the index/alpha pairs to client callbacks, and can just resolve the colors internally. Update test results.
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.
Matthias Clasen b0fa40b2 2022-12-19T13:16:10 tests: More diagnostics
Matthias Clasen 74ccc1e7 2022-12-19T00:49:02 tests: Produce useful output on failure
Matthias Clasen 08429110 2022-12-19T01:08:41 Tests: Fix memleak pointed out by valgrind
Behdad Esfahbod d8cb7cee 2022-12-18T14:35:36 [test] Try fixing bots with old glib
Matthias Clasen 2d4678b6 2022-12-17T22:30:31 Add a comment
Matthias Clasen 30a6fd04 2022-12-17T18:20:00 [colr] Add some tests
Matthias Clasen ca190aab 2022-12-23T14:03:03 Split off the hb-paint tests They belong in their own file.
Matthias Clasen ee7bbdf3 2022-12-23T00:01:20 tests: Update expected results These were changed by fixes for glyph transforms.
Matthias Clasen 3993a407 2022-12-22T23:55:27 test: Add some verification hints
Matthias Clasen 47dbebff 2022-12-22T16:06:51 [paint] Add COLRv0 tests
Ebrahim Byagowi 28620310 2019-08-29T14:55:54 [test] Avoid alloca use as clang complain Fixes https://circleci.com/gh/harfbuzz/harfbuzz/108171 complain
Khaled Hosny c9796d15 2019-07-22T03:57:24 Fix sbix glyph extents * The ‘height’ needs to be negated since the API returns “distance from top to bottom side”. * Similarly, the ‘y_offset‘ needs to be added to the height to get the ‘y_bearing’, since sbix’s offset is “the point in the glyph relative to its lower-left corner which corresponds to the origin” while ‘y_bearing’ is the “top side of glyph from origin”. With these changes the sbix glyph metrics return values similar to other tables, as they were otherwise unusable.
Chun-wei Fan 1e09add2 2018-12-12T01:32:01 test/api: Fix building on pre-C99 compilers Ensure variables are declared at the top of the block.
Ebrahim Byagowi cad90be4 2018-11-01T13:39:06 [test] minor
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
Ebrahim Byagowi c929ccfc 2018-10-29T08:41:13 [ot-color/png] Consider strike ppem on scaling
Ebrahim Byagowi 307d6186 2018-10-29T00:03:01 [ot-color] Make PNGHeader reading actually work
Ebrahim Byagowi 632e9af8 2018-10-28T23:43:50 [ot-color] Implement PNGHeader and test it, it doesn't work however
Ebrahim Byagowi 3d4c1f6a 2018-10-28T21:38:56 [ot-color] Apply Behdad reviews
Ebrahim Byagowi 8ef0d2ef 2018-10-28T20:09:40 [ot-color] Apply Behdad comment
Ebrahim Byagowi dbd419be 2018-10-27T15:15:24 [ot-color] Add public API for CBDT/sbix/SVG color Emojis
Ebrahim Byagowi 8180c37d 2018-10-27T14:45:00 [ot-color] Remove _png and _svg public APIs
Ebrahim Byagowi 9435fb24 2018-10-27T13:32:14 [ot-color/png] Implement CBDT part
Ebrahim Byagowi 265ad408 2018-10-26T23:55:11 [ot-color/png] Implement sbix part
Ebrahim Byagowi 30f18039 2018-10-26T09:34:34 [svg] Rename _svg_create_blob to _glyph_reference_blob_svg
Ebrahim Byagowi 5cb1ce86 2018-10-25T22:39:58 [svg] Collapse SVGDocumentIndex into SVG
Ebrahim Byagowi c7a4e3df 2018-10-23T18:00:48 [svg] Add public API * hb_ot_color_has_svg * hb_ot_color_glyph_svg_create_blob
Ebrahim Byagowi 4ceabb8c 2018-10-25T21:52:35 [svg] Hide start_glyph and end_glyph from API
Behdad Esfahbod 7997144b 2018-10-22T13:02:04 [color] Revamp palette API
Behdad Esfahbod 1de17bdb 2018-10-22T10:29:01 [colr] Add hb_ot_color_layer_t We never return parallel arrays from functions. That's inconvenient and hard to bind.
Behdad Esfahbod 3b3668ac 2018-10-21T19:23:11 [color] Rename / reorder a bit Implement has_data() for realz.
Behdad Esfahbod 9085a72d 2018-10-21T19:08:25 [cpal] Touch up palette flags
Ebrahim Byagowi d440c8d3 2018-10-22T22:07:59 Add chromacheck Emoji test fonts and minor preparations (#1294)
Ebrahim Byagowi 44f79b4b 2018-10-21T10:17:34 Remove _palette_entry_count as can be done with _palette_colors
Ebrahim Byagowi 6795dcfc 2018-10-21T09:51:15 [test] Test hb_ot_color_has_{colr,cpal}_data
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
Ebrahim Byagowi e8a6f5b8 2018-10-19T18:23:42 Add three macros for separating color channels
Ebrahim Byagowi 0e33467e 2018-10-19T17:44:06 Make ot-color tests pass
Khaled Hosny d4e928b1 2018-05-01T17:16:46 [color] Minimal API for COLR/CPAL
Ebrahim Byagowi e9d798dc 2018-10-19T18:30:01 [test] Use hb_test_open_font_file
Ebrahim Byagowi d4261b4b 2018-10-21T08:48:07 Add API test for hb_ot_color_get_color_layers
Behdad Esfahbod dcfcb950 2018-09-30T18:14:50 [test] Fix -Wunused-parameter warnings
Ebrahim Byagowi 5b9c2340 2018-02-27T22:56:17 [CPAL] Refactor and address the reviews
Sascha Brawer 5967eaba 2016-06-24T16:42:27 [CPAL] Return 0xFFFF as name id for unnamed palettes The name id 0 is used as Copyright notice. It's quite unlikely that a font supplies a color palette with the exact same name as the font's copyright notice, but the API should not prevent this. Also, try to fix a problem with GObject introspection, where the auto-generated Python bindings could not return palette colors.
Sascha Brawer d34d3ac9 2016-04-25T18:20:57 Support CPAL table