Samuel Ugochukwu

Results 56 comments of Samuel Ugochukwu

Use `plutovg_stroke_preserve` instead of `plutovg_stroke` because `plutovg_stroke` clears the subpath leaving `plutovg_clip` with empty path ```cpp static void test_clip2(const char * filename) { plutovg_surface_t * surface = plutovg_surface_create(256, 256); plutovg_t...

> but the api is a litter diffrent from html canvas api. They are different > when I translate a html canvas code to plutvg api , somtimes use stroke,...

`plutovg_fill` is equivalent to ```c plutovg_fill_preserve(pluto) plutovg_new_path(pluto) ``` `plutovg_stroke` is equivalent to ```c plutovg_stroke_preserve(pluto) plutovg_new_path(pluto) ``` `plutovg_clip` is equivalent to ```c plutovg_clip_preserve(pluto) plutovg_new_path(pluto) ```

> Add fillRect and strokeRect api can make plutovg more complete, plutovg will be more cool ! No... You can easily write it yourself when you need. > we will...

`orient="auto-start-reverse"` is not supported for now

The version number can be found here https://github.com/sammycage/lunasvg/blob/6b37cb15f6ab64be7efc3fb9670ce8263216d9a9/CMakeLists.txt#L3 But the problem is how to get it programmatically. My plan is to implement a class called Environment that will contain all...

I am no longer interested in multiple renderer anymore... Is `plutovg` slow?

> has found an issue, but doesn’t know the best way to disclose it. You can use the github issue if it doesn't contain any sensitive or private data, or...

Use `Document::render` instead. Example : ## 2x scale ```cpp Matrix matrix; matrix.scale(2.0, 2.0); Box box(0, 0, document->width(), document->height()); box.transform(matrix); auto width ​= static_cast(std::ceil(box.x + box.w)); auto height = static_cast(std::ceil(box.y +...

@hobbitdev See https://github.com/sammycage/lunasvg/issues/96#issuecomment-1220314547