src


Log

Author Commit Date CI Message
Matthias Clasen 30664550 2022-12-25T19:03:50 Work on proper build integration Install hb-cairo.h and define HB_HAS_CAIRO.
Behdad Esfahbod bb640d40 2022-12-25T16:55:27 [hb-cairo] Use nullptr instead of NULL
Behdad Esfahbod bf52386c 2022-12-25T16:10:31 [cairo] Silence warning
Behdad Esfahbod e594780e 2022-12-25T16:05:33 [hb-cairo] Some header tweaks
Behdad Esfahbod b3a36566 2022-12-25T16:53:54 [hb-cairo] Minor
Behdad Esfahbod 1ad24421 2022-12-25T15:55:14 [hb-cairo] Rename files to C++
Behdad Esfahbod a7c2e839 2022-12-25T16:59:58 [hb-cairo] Prefix internal methods
Behdad Esfahbod 3a11a09f 2022-12-25T16:53:21 [hb-cairo] Rename cairo_extend
Behdad Esfahbod 5c3da76a 2022-12-25T15:04:13 [hb-cairo] Change API again We need to work with a hb-font for variations and font-funcs to be fetched properly.
Behdad Esfahbod 9f7538c2 2022-12-25T13:46:37 [hb-cairo] Change API
Behdad Esfahbod 20a50acc 2022-12-25T16:09:26 [hb-cairo] Make hb_cairo_glyphs_from_buffer public
Matthias Clasen 767bdd43 2022-12-25T10:32:33 wip: Add libharfbuzz-cairo This library will provide integration with cairo for font rendering.
Behdad Esfahbod c3a8c6bb 2022-12-26T15:38:24 [paint] More docs
Behdad Esfahbod ae208963 2022-12-26T12:30:39 Add hb-limits.hh
Matthias Clasen 5f5fa4b2 2022-12-26T13:47:35 [ft-colr] Limit the size of the graph we follow This adds the same check that we already do in the native implementation.
Matthias Clasen ea2892c3 2022-12-26T10:10:39 [paint] Limit the size of the graph we follow In addition to checking the depth, also count the number of edges in the graph we've followed, and give up after 1024.
Matthias Clasen 5dd69d81 2022-12-26T08:23:55 Fix hb_ot_color_has_paint We must no access v1 data without checking that version is 1. A bit of a trap.
Matthias Clasen b8f2281c 2022-12-26T07:59:01 Add hb_ot_color_glyph_has_paint
Behdad Esfahbod 79c5bb92 2022-12-24T12:57:33 [ft] Work around a freetype bug
Behdad Esfahbod fa1cf15e 2022-12-24T11:56:23 [ft-colr] Whitespace
Behdad Esfahbod 5343eac1 2022-12-24T11:53:43 [ft-colr] Minor use context instead of direct access
Behdad Esfahbod 0b6468b8 2022-12-24T11:50:57 [ft-colr] Minor
Behdad Esfahbod 1c595ec1 2022-12-24T11:40:44 [paint-extents] Lazy-load paint_extents funcs
Behdad Esfahbod 4280ed29 2022-12-24T11:38:32 [paint-extents] Add missing file
Behdad Esfahbod 2c0ab34d 2022-12-24T11:37:59 [paint-extents] Lazy-load draw-funcs
Behdad Esfahbod 11036ed7 2022-12-24T11:30:45 [paint] Add hb-paint-extents.cc
Behdad Esfahbod 959996d7 2022-12-24T11:22:16 [paint-extents] Namespace
Behdad Esfahbod 62bd26dd 2022-12-24T11:01:32 [ft] Pick largest bitmap size
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
Behdad Esfahbod 6ccbfabd 2022-12-24T10:44:25 [paint] Return bool from paint_image() Fixes https://github.com/harfbuzz/harfbuzz/issues/3974
Behdad Esfahbod 346331d3 2022-12-24T10:35:26 [ft] Fix negative xscale
Behdad Esfahbod 9376e7a9 2022-12-24T10:31:30 [ft] Remove stale TODO
Behdad Esfahbod a7fd48c4 2022-12-24T10:28:41 [ft] Comment
Behdad Esfahbod bb45ba2f 2022-12-24T10:25:43 [ft] Fix negative y-scale
Behdad Esfahbod aba2063c 2022-12-24T10:15:47 [paint-extents] Comments
Behdad Esfahbod 988ca459 2022-12-24T10:12:35 [paint-extents] Minor refactor
Behdad Esfahbod f8bf9879 2022-12-24T10:04:48 [paint-extents] Refactor code
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.
Behdad Esfahbod f7eebc39 2022-12-23T18:52:46 [paint-extents] Shorten enum addressing
Behdad Esfahbod 0110bdb3 2022-12-23T18:17:05 [paint-extents] Streamline extents_t more
Behdad Esfahbod 9f3e050b 2022-12-23T18:15:21 [paint-extents] Streamline extents_t
Behdad Esfahbod 0d129ae3 2022-12-23T18:00:38 Fix warning
Behdad Esfahbod 73e48b93 2022-12-23T17:55:09 [colr] Push clipbox or computed clip
Behdad Esfahbod 02684751 2022-12-23T17:33:13 [paint-extents] Clean up
Behdad Esfahbod dbea503a 2022-12-23T17:28:46 [colr] Return true extents
Behdad Esfahbod f9c2e30e 2022-12-23T17:13:35 [paint-extents] Better handle empty glyphs
Matthias Clasen 885dbcfb 2022-12-23T19:07:32 Skip empty outlines
Behdad Esfahbod bd61e645 2022-12-23T16:59:12 [paint-extents] Use hb_min/hb_max
Behdad Esfahbod 56a48f8b 2022-12-23T16:44:06 [paint] Don't use extents in hb-view Let the clipbox do its magic. Currently works for ft backend only.
Matthias Clasen 79229cea 2022-12-23T18:33:53 Get outline extents manually
Behdad Esfahbod 47c896f0 2022-12-23T16:20:44 [paint-extents] Hook it up, kinda
Behdad Esfahbod 7fbaaebe 2022-12-23T15:37:16 [paint-extents] Finish off Untested and unused.
Behdad Esfahbod 8ca78d15 2022-12-23T15:21:48 [paint-extend] More
Behdad Esfahbod 23a2d4db 2022-12-23T15:10:26 [paint-extents] More
Behdad Esfahbod d7435b10 2022-12-23T15:05:30 [paint-extents] Flesh out more
Behdad Esfahbod c37a1ead 2022-12-23T14:57:12 [paint-extents] Flesh out some more
Behdad Esfahbod 268d8b7d 2022-12-23T14:45:56 [paint-extents] Start out
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.
Matthias Clasen a6f813b6 2022-12-15T00:05:27 Implement hb_color_line_get_extend
Matthias Clasen eef47f23 2022-12-22T14:16:02 [paint] Fix the docs
Matthias Clasen 3937d6b0 2022-12-14T23:58:47 Implement hb_color_line_t
Matthias Clasen 64f1b55d 2022-12-14T23:58:25 api fixes: use floats consistently
Behdad Esfahbod 3c972867 2022-12-22T11:40:06 More s/hb_font_get_glyph_shape/hb_font_draw_glyph/
Matthias Clasen 627c857f 2022-12-14T22:36:54 rename pop_group_and_composite
Matthias Clasen c9350838 2022-12-14T22:32:40 assorted fixes and changes
Behdad Esfahbod 72a169c8 2022-12-22T11:26:10 [ft] Paint COLRv0 glyphs
Matthias Clasen 42324aef 2022-12-14T22:04:46 hb-paint: annotation fix
Behdad Esfahbod bb807f47 2022-12-22T10:51:26 [ft] Implement paint_glyph() for outline glyphs
Matthias Clasen 8377341b 2022-12-14T22:03:52 wip: implement paint_glyph
Matthias Clasen efe13a19 2022-12-14T09:50:52 fix introspection
Behdad Esfahbod 91c88050 2022-12-22T10:42:27 [ft] Use new name for draw API
Matthias Clasen 6a48ac42 2022-12-14T06:55:01 COLR implementation
Matthias Clasen 71efa0dc 2022-12-14T06:22:00 wip: hb_font_paint_glyph
Behdad Esfahbod c27eefec 2022-12-22T10:41:13 Revert "Drop the deprecation" This reverts commit 3904e66777339a3d420ece1c2b7d550949aa3946.
Matthias Clasen 83d0a49f 2022-12-13T21:14:25 wip: hb-paint
Behdad Esfahbod f3985d94 2022-12-22T10:11:28 [paint] Fix drawing non-color glyphs
Behdad Esfahbod 237955df 2022-12-22T08:12:47 [paint] Add slant to image() callback And slant images in hb-view.
Matthias Clasen c2219339 2022-12-21T18:39:27 [paint] Preserve foreground information
Matthias Clasen f146299a 2022-12-21T17:24:02 [paint] Drop unnecessary api
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.
Behdad Esfahbod 6c71c530 2022-12-21T10:54:22 [paint] Rename hb_paint_context_t to hb_ot_paint_context_t
Behdad Esfahbod 84953953 2022-12-21T09:03:13 [paint] Fix slant
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 32ce29f9 2022-12-21T07:42:36 [font] Move hb_font_t typedef This is needed to avoid circular header dependencies.
Matthias Clasen 8364d913 2022-12-21T00:59:13 Document hb_font_set_draw_glyph_func
Matthias Clasen a20999b9 2022-12-21T00:20:37 [font] Fix a few documentation mistakes
Matthias Clasen 2333a566 2022-12-20T22:43:04 Drop the deprecation No need to drop hb_font_get_glyph_shape, just because hb_font_draw_glyph does the same. Its fine to keep both around.
Matthias Clasen 14b026ff 2022-12-19T13:53:49 [draw] Add hb_font_draw_glyph hb_font_draw_glyph(), hb_font_draw_glyph_func_t and hb_font_funcs_set_draw_glyph_func() are just alternative names for hb_font_get_glyph_shape and friends, to better align with hb_font_paint_glyph.
Matthias Clasen 08da1265 2022-12-19T14:36:29 [docs] Linkify links
Matthias Clasen 9437f719 2022-12-19T14:29:39 [paint] Document hb_paint_extend_t
Matthias Clasen 3a2634e2 2022-12-19T13:48:08 [paint] Document hb_font_paint_glyph_func_t
Matthias Clasen 0f287e75 2022-12-19T13:45:45 [paint] Rename hb_font_get_glyph_paint_func_t The 'get' was just there due to implementation choices. Work around that and call the vfunc what it should be: hb_font_paint_glyph_func_t.
Matthias Clasen ddd20392 2022-12-19T12:20:07 [paint] Improve the docs
Behdad Esfahbod d9875ddc 2022-12-23T12:37:42 [ft-colr] Add depth counter
Matthias Clasen 3a219cfa 2022-12-19T11:15:37 [config] Make HB_LEAN imply HB_NO_PAINT
Matthias Clasen 0ef2dc9b 2022-12-19T10:02:17 Drop a TODO This was addressed in 61bd602791d801
Matthias Clasen 96cda388 2022-12-19T09:59:33 [paint] Clarify docs Spell out where the different datas originate.