Wykres commitów

12 Commity (feature/ssf)

Autor SHA1 Wiadomość Data
Phil Howard e3a5365a39 PicoVector: Add tracked memory alloc, track the node buffer.
With a low GC threshold the node buffer was being collected (despite guards against this)
and causing further drawing operations to be corrupted.

Add a new tracked malloc method and use it for node buffers and font data.

Tweak pp_poly_add_path to accept a point count, avoiding many successive rellocs when
dealing with a known quantity of points (copying from an af_glyph_t.)
2025-05-08 16:28:11 +01:00
Phil Howard 5c19c6ab6a PicoVector: AF: Support for 16bit point count.
Somewhere in the conversion from C++ to C we lost support for 16-bit point counts.

Raise the internal point count to 16-bit, and check for a flag in the font.

If the flag is set, treat the point count as 16-bits, otherwise fallback to 8 for back compatibility.
2025-03-28 10:31:01 +00:00
Phil Howard 4a3f0a435d PicoVector: Fix fonts not rendering with no transform set. 2025-03-28 10:31:01 +00:00
Mike Bell 00bfbddaf0 PicoVector: Apply overall transform to text rendering. 2025-03-28 10:31:01 +00:00
Mike Bell c94f4607de PicoVector: Add optional text max width and max height. 2025-03-28 10:31:01 +00:00
Phil Howard 089e5df243 PicoVector: Refactor text multiline support.
Drop dependence on null terminated strings, and for a final linebreak.

Bound all text processing using the text length.
2025-03-28 10:31:01 +00:00
Phil Howard 09dbfa1e64 PicoVector: Improve text rendering and control. 2025-03-28 10:31:01 +00:00
Phil Howard 71bcc9d62c PicoVector: Rewrite around new linked-lists poly. 2025-03-28 10:31:01 +00:00
Phil Howard 0da5eda410 PicoVector: render text that doesn't end with a linebreak. 2025-03-28 10:31:01 +00:00
Phil Howard 2fc45d0737 PicoVector: fix pointer arithmatic in af_load_font_file.
Pointers were being incremented as if they were bytes, rather than larger
containers.
2025-03-28 10:31:01 +00:00
Phil Howard a415261cc9 PicoVector: Break things until they work. 2025-03-28 10:31:01 +00:00
Phil Howard 3d6ac818a1 PicoVector: alright-fonts bringup. 2025-03-28 10:31:01 +00:00