Open asturur opened 3 years ago
@asturur hey, storkeText
and fillText
are ready now, feel free to play with it. Note the and maxWidth
measureText
is still in developing.
The maxWidth
has been implemented.
yes i want to resume this test. I see that skia canvas also has been updated, how this package relate to the other? is skia-canvas a dependency of this one?
I see that skia canvas also has been updated, how this package relate to the other? is skia-canvas a dependency of this one?
No, skia-canvas is depended on rust-skia, another skia library created by me.
This project is depended on skia from scratch, because rust-skia was designed for more general usage, like rendering on OpenGL
and Vulkan
API, modify the build config on it is very complicated. So I started this project and build skia for only offscreen rendering usage, and also without any system dependencies!
The major differences between this project and skia-canvas is:
fontconfig
.linux-x64-gnu
windows-x64
macOS-x64
and macOS-arm64
. But skr-canvas support more wildly used platforms and CPU arch. Like linux-x64-musl
which is very import for node:lts-apline
users, and linux-arm64-gnu
and linux-arm64-musl
, which is important for users who is using m1 chip macOS with docker.And this project is dependent on skia
directly, so the performance is better than the other implementations: https://github.com/Brooooooklyn/canvas#performance
Mirroring the basic node-canvas interface, has already done with
createCanvas
function, could be a great boost to adoption, especially for JSDOM.