Khaled Hosny
72ee0c2dfd
Add meson options to disable building harfbuzz-vector
2026-03-04 18:12:45 +02:00
Khaled Hosny
9520926168
Add meson options to disable building harfbuzz-raster
2026-03-04 18:12:45 +02:00
Behdad Esfahbod
3a8f96efa0
[util] Use SVG-safe extents overlay colors in hb-vector
2026-03-03 17:28:58 -03:00
Behdad Esfahbod
1936dd4ce5
[util] Scale hb-vector stroke width with font size
2026-03-03 17:26:11 -03:00
Behdad Esfahbod
c2efaa5ced
Unify view extents defaults
2026-03-03 17:19:15 -03:00
Behdad Esfahbod
2299ad8c4e
[hb-vector] Remove non-sensical gid=1 check
...
AI hallucination.
2026-03-01 13:14:41 -03:00
Behdad Esfahbod
46bf94ef0e
[util] Centralize foreground/background parsing in view options
2026-02-26 21:04:18 -03:00
Behdad Esfahbod
164d58c8d7
[util] Parse custom palette once in view-options and reuse
2026-02-26 21:00:21 -03:00
Behdad Esfahbod
0edadf2aa0
[vector] Revert hb-vector-svg-all custom palette wiring
2026-02-26 17:14:31 -03:00
Behdad Esfahbod
781bcead34
[vector] Document and wire custom palette paint APIs
2026-02-26 17:13:03 -03:00
Behdad Esfahbod
1e857b2e5f
[util] Make hb-vector palette var cache mutable
2026-02-26 17:02:37 -03:00
Behdad Esfahbod
23e2c603f4
[util] Resolve hb-vector CPAL vars with lazy per-index cache
2026-02-26 17:01:43 -03:00
Behdad Esfahbod
f7a0ca52ff
[util] Refactor hb-vector palette var rewrite helpers
2026-02-26 17:00:51 -03:00
Behdad Esfahbod
90bd83dfc2
[util] Cache active CPAL colors for hb-vector SVG var rewrite
2026-02-26 17:00:09 -03:00
Behdad Esfahbod
412f215d02
[util] Harden hb-vector var(--colorN) rewrite parser
2026-02-26 16:58:01 -03:00
Behdad Esfahbod
12989d4e6a
[util] Align vector/raster defaults with view and update vector baselines
2026-02-26 16:54:28 -03:00
Behdad Esfahbod
2c4c862758
[util] Keep hb-vector default margin at zero
2026-02-26 16:52:25 -03:00
Behdad Esfahbod
a4a7f9af84
[util] Resolve SVG var(--colorN) to concrete colors in hb-vector output
2026-02-26 16:32:11 -03:00
Behdad Esfahbod
9b3583f2f6
[util] Emit CPAL CSS vars for SVG var(--colorN) in hb-vector
2026-02-26 16:30:33 -03:00
Behdad Esfahbod
fec0d08b76
[util] Hoist shared stroke attrs in hb-vector rainbow draw output
2026-02-26 16:26:54 -03:00
Behdad Esfahbod
1ed094ac68
[util] Apply rainbow colors per glyph in hb-vector draw output
2026-02-26 16:24:45 -03:00
Behdad Esfahbod
51c599ccb9
[vector] Hook --custom-palette in hb-vector paint output
2026-02-26 16:18:56 -03:00
Behdad Esfahbod
8b961af787
[util] Support --rainbow foreground cycling in hb-vector paint path
2026-02-26 16:17:48 -03:00
Behdad Esfahbod
79fdf3ac84
[util] Let hb-vector inherit shared view options
2026-02-26 16:10:17 -03: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
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
27d9aff7b8
[raster] Add custom palette overrides for COLR and SVG
2026-02-25 15:33:44 -03:00
Behdad Esfahbod
533bac1da0
[raster] Add --font-palette and pass palette to paint
2026-02-25 15:16:44 -03:00
Behdad Esfahbod
c447a79dc2
[raster-all] Accept SVG
2026-02-25 14:27:03 -03:00
Behdad Esfahbod
3d48a0bce0
[util/raster] Use glyph extents for margins; drop AA pad
2026-02-25 11:46:42 -03:00
Behdad Esfahbod
eaa141fdd0
[util/raster] Add --margin option to hb-raster
2026-02-25 11:27:25 -03:00
Behdad Esfahbod and Claude Opus 4.6
291bc6e1f2
[raster] Add SVG table rasterizer
...
Implement a minimal SVG parser/renderer that translates OpenType SVG
table documents into paint commands through the existing hb_paint_funcs_t
interface. All pixel-level rendering (gradients, compositing, clipping)
is handled by the existing hb_raster_paint_t infrastructure.
Features:
- XML tokenizer and SVG path data parser (all commands including arcs)
- Shape-to-path converters (rect, circle, ellipse, line, polyline, polygon)
- Gradient support (linearGradient, radialGradient with stops and transforms)
- SVG color parser (#RGB, #RRGGBB, rgb(), named colors, currentColor)
- CPAL palette colors via var(--colorN) with fallback support
- Transform parser (matrix, translate, scale, rotate, skewX, skewY)
- Defs/use resolution, clipPath support, group opacity
- Hook into hb-raster utility for SVG font rendering
New files: hb-raster-svg.cc, hb-raster-svg.hh, hb-raster-paint.hh
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-02-25 11:10:35 -03:00
Behdad Esfahbod
7d8c136fd5
[vector] Make paint_glyph use context palette and foreground
2026-02-24 19:20:49 -03:00
Behdad Esfahbod
86e0e55b70
[vector] Make format constructor-time and drop set_format APIs
2026-02-24 14:01:39 -03:00
Behdad Esfahbod
4b730621f8
[vector] Fix cached paint body writes and bounded SVG header scan
2026-02-24 13:49:05 -03:00
Behdad Esfahbod
0692853d7d
[util] Split hb-draw-all and hb-vector-svg-all
2026-02-24 12:53:49 -03:00
Behdad Esfahbod
5c8115e5ad
[vector] Subset SVG glyph content and fix SVG slicing
2026-02-24 12:30:30 -03:00