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
e13b688611
util: use hb_memcpy/hb_memset for raster paths
2026-02-24 04:08:43 -03:00
Khaled Hosny
ed68db2c01
[util] Fix MSVC warning
...
Apparently \e is non-standard extension not supported by MSVC. Use \033
instead.
Fixes:
warning C4129: 'e': unrecognized character escape sequence
2023-01-21 15:27:56 +02:00
Behdad Esfahbod
e903397bc3
Whitespace
2023-01-16 12:33:17 -07:00
Behdad Esfahbod
969914b2b5
[view] Clean up includes
2022-12-29 21:01:16 -07:00
Behdad Esfahbod
962d4925b2
[ansi] Optimize write
2022-12-29 20:39:02 -07:00
Behdad Esfahbod
a35f8e340b
[ansi] Whitespace
2022-12-29 20:34:23 -07:00
Behdad Esfahbod
0004ec13a6
[view] Write ansi output to --output-file
...
Was writing to stdout all this time!
2022-12-29 20:32:46 -07:00
Behdad Esfahbod
3a319b59bd
[ansi] Write \e directly
2022-12-29 20:26:09 -07:00
Behdad Esfahbod
f8d052df6d
[ansi-print] Remove impossible condition
2022-06-22 18:35:48 -06:00
Behdad Esfahbod
251320ea22
[ansi-print] Whitespace
2022-06-22 16:44:07 -06:00
Behdad Esfahbod
0d59d7952c
[ansi-print] Precision
2022-06-22 16:41:02 -06:00
Behdad Esfahbod
c695a09154
[ansi-print] Reorder cases; harmless
2022-06-22 16:33:37 -06:00
Behdad Esfahbod
ae0fce31cd
[ansi-print] Fix quadrants
2022-06-22 16:31:21 -06:00
Behdad Esfahbod
2ebaf0c5ba
[ansi-print] Fix unicolor detection
2022-06-22 16:22:02 -06:00
Behdad Esfahbod
a4db80ca0a
[ansi-print] Fix color calculation
...
Still something's wrong.
2022-06-22 16:13:53 -06:00
luz paz
e2e305066a
Fix various typos
...
Found via `codespell -q 3 -S ./perf/texts -L actualy,ba,beng,fo,gir,inout,nd,ot,pres,ro,te,teh,timne`
2022-01-16 05:39:03 -08:00
Behdad Esfahbod
4fe43ccbf1
[util] Fold ansi-print.cc into ansi-print.hh
2021-08-06 19:17:12 -06:00
Behdad Esfahbod
c77ae40852
Rename hb-*private.hh to hb-*.hh
...
Sorry for the noise, downstream custom builders. Please adjust.
2018-08-25 22:36:36 -07:00
Behdad Esfahbod
17f40b7cad
Include hb-private.hh more consistently
...
Part of fixing https://github.com/behdad/harfbuzz/issues/585
2017-10-27 09:22:42 -06:00
Behdad Esfahbod
52e7b1424a
[util] Make hb-view print out Unicode art if stdout is a terminal
2012-05-13 07:55:00 +02:00