Commit graph

17 commits

Author SHA1 Message Date
Caleb Connolly
52cb0ae649
nanosvgrast: small cleanup 2023-03-06 00:28:35 +00:00
Caleb Connolly
3c96de11dd
add timespec lib, decouple animation from frambuffer rate 2023-02-20 02:25:27 +00: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
Caleb Connolly
cc37eea120
text: half space char width 2022-08-06 19:35:04 +01: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
Oliver Smith
2d79d8ad6a
Tweak the animation and placement
* Move the animation between the logo and the text
* Move text further below
* Change circles to 3 (like ...) and increase speed to 5
* Change circles radius, distance, amplitude
* Draw empty circles instead of full circles, to be used with a logo
  that also has an outline
2022-08-06 18:44:29 +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
Martijn Braam
b6625648c9
DPI scaling for the dots 2022-07-05 13:22:08 +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
Caleb Connolly
062a665899
move to meson, use tfblib as an external dependency
needs: https://github.com/vvaltchev/tfblib/pull/4
2022-01-22 20:46:04 +00:00