Commit Graph
2 Commits
Author SHA1 Message Date
Behdad Esfahbod 2ea0e18a43 [util] Move shared ANSI image helpers out of Cairo wrapper
The RGB24-to-ANSI output path was implemented in helper-cairo-ansi.hh,
so hb-raster picked up a Cairo header dependency even though it only
needed the shared image-output code. That broke builds configured with
-Dcairo=disabled.

Move the shared callback, Chafa, and RGB24-to-ANSI helpers into
helper-image-output.hh, keep helper-cairo-ansi.hh focused on adapting
Cairo surfaces, and switch raster-output.hh to include only the shared
image helper.

Testing:
meson test -C build

Assisted-by: OpenAI Codex
2026-03-11 22:12:40 -03:00
Behdad Esfahbod 2609adb6f9 util: share terminal image output helpers 2026-03-09 23:37:36 +02:00