Commit graph

13 commits

Author SHA1 Message Date
Caleb Connolly
26b0fe1b22
nanosvg: move to C file
no need to keep this in a header.

Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org>
2023-11-21 04:16:13 +00:00
Caleb Connolly
01af13950c
WIP: vendor tfblib + clang-format
We only need a subset of it, to iterate faster and integrate features
like in-line rotation let's vendor it for now.

Signed-off-by: Caleb Connolly <caleb@connolly.tech>
2023-07-28 20:15:06 +01:00
Caleb Connolly
4a98f0a0cf
finish refactor, zero allocs to make valgrind happy 2023-02-20 01:25:37 +00:00
Caleb Connolly
7b714e433e
factor out message printing, use const where possible 2023-02-19 16:54:25 +00:00
Oliver Smith
a1df67dfce
nsvgGetTextShapes: fix uninitialized values
Use calloc to zero ret, because ret[i] does not get written if
NSVG_FLAGS_VISIBLE is unset. Found with valgrind.
2022-08-06 18:45:51 +01:00
Oliver Smith
36b0e6780b
include: add missing declarations
Add nsvgGetTextShapes() and nsvgRasterizeText() declarations outside of
the _IMPLEMENTATION areas, so the headerfiles can be used without
having _IMPLEMENTATION set.
2022-08-06 18:44:53 +01:00
Caleb Connolly
3c25e1ba44
support newlines + automatic line splitting 2022-08-06 18:34:10 +01:00
Caleb Connolly
a5af6e1a50
nanosvg: fix some dodgy checks 2022-07-05 14:07:33 +01:00
Caleb Connolly
ec1bfbd2fd
lots of fixes, add animations! 2022-03-11 02:26:04 +00:00
Caleb Connolly
768aefef93
functional implementation 🥳 2022-02-23 01:20:05 +00:00
Caleb Connolly
c13d5fd6ba
sorta works
things run, text and logos work, it's a start
2022-01-23 21:25:19 +00:00
Caleb Connolly
1d29b4d87a
wip svg font rendering
works with built in draw_svg stuff, trying to support nsvgrast
2022-01-23 04:41:15 +00:00
Caleb Connolly
2844142e1b
initial svg rendering
messsy
2022-01-22 22:27:56 +00:00