Commit Graph
20289 Commits
Author SHA1 Message Date
Behdad Esfahbod 87c18a2c47 [raster] Drop unused SVG def enum variant 2026-02-25 23:51:41 -03:00
Behdad Esfahbod 2ef531de78 [raster] Add SVG parser guardrails for attrs and stops 2026-02-25 23:51:20 -03:00
Behdad Esfahbod 209ccf6a7b [raster] Unify SVG id reference parsing 2026-02-25 23:50:54 -03:00
Behdad Esfahbod fea3052694 [raster] Add cached SVG attribute view helper 2026-02-25 23:50:05 -03:00
Behdad Esfahbod 0549b109f0 [raster] Split SVG defs store into hb-raster-svg-defs 2026-02-25 23:49:06 -03:00
Behdad Esfahbod a7a7ed6f47 [raster] Split SVG parser code into hb-raster-svg-parse 2026-02-25 23:44:34 -03:00
Behdad Esfahbod f6b60d9d64 raster/svg: split base helpers into hb-raster-svg-* units 2026-02-25 23:37:22 -03:00
Behdad Esfahbod bce954ddec raster/svg: speed up defs lookups with hb_bytes_t hash maps 2026-02-25 23:32:24 -03:00
Behdad Esfahbod 153418b15e raster/svg: parse style properties once per element 2026-02-25 23:27:25 -03:00
Behdad Esfahbod d20baa570c raster/svg: reuse shared url parser and tidy renderer formatting 2026-02-25 23:22:15 -03:00
Behdad Esfahbod ada78d5041 raster/svg: pass cascade state struct through renderer 2026-02-25 23:19:01 -03:00
Behdad Esfahbod dc8ac302d4 raster/svg: fix opacity inherit and gradient stop inherit 2026-02-25 23:15:49 -03:00
Behdad Esfahbod 0d1ef4c14c raster/svg: add url fallback paint and normalize inherit/none 2026-02-25 23:12:11 -03:00
Behdad Esfahbod 2f3ca23a07 raster/svg: handle inherit and currentColor in gradients 2026-02-25 23:10:12 -03:00
Behdad Esfahbod e46cc48295 raster/svg: add visibility/color cascade and global defs scan 2026-02-25 23:07:03 -03:00
Behdad Esfahbod 5130b0f517 raster/svg: support style props and harden gradient/url parsing 2026-02-25 22:56:49 -03:00
Behdad Esfahbod c90db60149 Merge pull request #5763 from harfbuzz/raster-svg-cleanup
Raster svg cleanup
2026-02-25 15:19:11 -07:00
Behdad Esfahbod 9fb2287351 raster-svg: document defs helper flow 2026-02-25 19:02:58 -03:00
Behdad Esfahbod c61a9f0994 raster-svg: centralize href/xlink lookup 2026-02-25 19:02:42 -03:00
Behdad Esfahbod 9c8512d701 raster-svg: split element rendering into helpers 2026-02-25 19:02:21 -03:00
Behdad Esfahbod f68fdc4aa0 raster-svg: normalize defs/render indentation 2026-02-25 18:59:18 -03:00
Behdad Esfahbod 52bebc03fd raster-svg: reuse fragment-id parsing for <use> href 2026-02-25 18:59:02 -03:00
Behdad Esfahbod d379b303ff raster-svg: tighten defs parsing helpers and stack checks
Keep stack-depth snapshots always declared with HB_UNUSED
2026-02-25 18:56:26 -03:00
Behdad Esfahbod 82e7169dbb raster-svg: dedupe url(#id) parsing 2026-02-25 18:53:26 -03:00
Behdad Esfahbod 72424f4999 raster-svg: dedupe gradient defs parsing
Reuse shared empty-clip helper in clip rectangle OOM path
2026-02-25 18:52:23 -03:00
Behdad Esfahbod bfc51d8279 raster-paint: share clip-mask rasterization helper 2026-02-25 18:50:37 -03:00
Behdad Esfahbod b86deba105 raster-svg: handle defs OOM via vector in_error 2026-02-25 18:45:54 -03:00
Behdad Esfahbod e925a8aa04 Merge pull request #5762 from harfbuzz/hb-raster-view-options
`hb-raster` view options
2026-02-25 14:42:19 -07:00
Behdad Esfahbod 953f222c2e [raster] Remove extents safety pad for view parity 2026-02-25 18:32:45 -03:00
Behdad Esfahbod 24912d7990 [raster] Fix logical bounds to avoid trailing empty line 2026-02-25 18:31:25 -03:00
Behdad Esfahbod 3f0bee360f [raster] Fix non-rainbow A8 output extents usage 2026-02-25 18:25:18 -03:00
Behdad Esfahbod b141d47b8e [raster] Implement show-extents overlays 2026-02-25 16:40:09 -03:00
Behdad Esfahbod acaf6b3f43 [view] Keep foreground palette cycling across lines 2026-02-25 16:37:06 -03:00
Behdad Esfahbod 21b8e0a4c4 [raster] Apply foreground palette cycling to non-color glyphs 2026-02-25 16:35:16 -03:00
Behdad Esfahbod f5e211094b [raster] Honor font-extents for line step with scaling 2026-02-25 16:32:28 -03:00
Behdad Esfahbod ba51d73241 [raster] Scale line-space to font units 2026-02-25 16:30:35 -03:00
Behdad Esfahbod d0149e5e2f [raster] Honor view line-space in line step 2026-02-25 16:28:24 -03:00
Behdad Esfahbod 323ae8bd6c [raster] Implement logical/ink extents selection 2026-02-25 16:26:07 -03:00
Behdad Esfahbod 6fff31e106 [util] Inline view foreground setup into post-parse 2026-02-25 16:22:10 -03:00
Behdad Esfahbod d7e890d363 [util] Run view foreground setup in post-parse hook 2026-02-25 16:18:55 -03:00
Behdad Esfahbod 1ab77842a7 [raster] Reuse shared view_options_t for CLI flags 2026-02-25 16:16:51 -03:00
Behdad Esfahbod a0e6e1de3f Merge pull request #5761 from harfbuzz/raster-svg
[raster] Rasterize simple SVG fonts
2026-02-25 12:10:50 -07:00
Behdad Esfahbod f2edc612ee Merge branch 'main' into raster-svg
# Conflicts:
#	util/raster-output.hh
2026-02-25 15:49:13 -03:00
Behdad Esfahbod 6a90ed9c39 Revert "[util/raster] Use glyph extents for margins; drop AA pad"
This reverts commit 3d48a0bce0.
2026-02-25 15:47:15 -03:00
Behdad Esfahbod fb88a3127c [docs] List new hb-raster custom palette APIs 2026-02-25 15:43:37 -03:00
Behdad Esfahbod 27d9aff7b8 [raster] Add custom palette overrides for COLR and SVG 2026-02-25 15:33:44 -03:00
Behdad Esfahbod 43d1e3fb5b [raster] Honor selected palette in SVG color resolution 2026-02-25 15:28:45 -03:00
Behdad Esfahbod 533bac1da0 [raster] Add --font-palette and pass palette to paint 2026-02-25 15:16:44 -03:00
Behdad Esfahbod bc3c22799f [svg] Inline SVG accelerator cache implementation in table header 2026-02-25 15:03:38 -03:00
Behdad Esfahbod aa41f8cf16 [svg] Move doc cache into SVG table accelerator 2026-02-25 14:34:00 -03:00