Commit Graph
36 Commits
Author SHA1 Message Date
Behdad Esfahbod 4191cf20c0 Fix -Wdouble-promotion warnings
Fixes https://github.com/harfbuzz/harfbuzz/issues/5785
2026-03-05 01:24:29 -03: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 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 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 5c8115e5ad [vector] Subset SVG glyph content and fix SVG slicing 2026-02-24 12:30:30 -03:00
Behdad Esfahbod 08b8cf5c66 [hb-vector] Skip zero-advance gid1 fallback draw 2026-02-24 10:27:50 -03:00
Behdad Esfahbod 612e996780 [hb-vector] Apply foreground color to draw output 2026-02-24 10:07:06 -03:00
Behdad Esfahbod e75024e104 [util] Share margin parser and add vector background/margin options 2026-02-24 10:05:32 -03:00
Behdad Esfahbod a9598bf99f [hb-vector] Route --ink through glyph extents mode 2026-02-24 09:57:54 -03:00
Behdad Esfahbod c0a895613d [vector] Add extents mode to glyph APIs and make setters expand 2026-02-24 09:46:55 -03:00
Behdad Esfahbod 5314059602 [vector] Fix combined SVG slicing for nested SVG content 2026-02-24 09:24:09 -03:00
Behdad Esfahbod 344c12ca15 Add vector paint glyph convenience API and auto-extents 2026-02-24 09:19:04 -03:00
Behdad Esfahbod f108e8b349 Fix hb-vector baseline by computing extents in SVG space 2026-02-24 09:11:14 -03:00
Behdad Esfahbod a343292e5d Improve hb-vector SVG reuse output orientation and units 2026-02-24 09:09:53 -03:00
Behdad Esfahbod b4b0134493 Add draw_glyph pen placement API for reusable SVG output 2026-02-24 09:00:26 -03:00
Behdad Esfahbod 5b67629871 Port hb-vector utility to hb_vector API 2026-02-24 08:55:27 -03:00