]> O.S.I.I.S - jp/vkvg.git/commitdiff
reduce curve distanceTolerance (1.0->0.25)
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>
Wed, 9 Mar 2022 12:15:03 +0000 (13:15 +0100)
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>
Wed, 9 Mar 2022 12:15:03 +0000 (13:15 +0100)
README.md
src/vkvg_context.c

index de94c3fe545ba2a67de242350b16daea80547acc..154237795b5c893e01099de35230c32ed3ca1e9a 100644 (file)
--- a/README.md
+++ b/README.md
@@ -67,15 +67,16 @@ For API documentation and usage, please refer to the [Cairo](https://www.cairogr
 
 ## Current status:
 
-- Fill (stencil even-odd, non-zero with ear clipping).
+- Fill (stencil even-odd, non-zero).
 - Stroke.
 - Basic painting operation.
 - Font system with caching operational.
-- Linear Gradients.
+- Linear/Radial Gradients.
 - Line caps and joins.
+- Dashes.
 - Context should be thread safe, extensive tests required.
 - Image loading and writing with [stb lib](https://github.com/nothings/stb)
-- Test includes svg rendering with [nanoSVG](https://github.com/memononen/nanosvg)
+- Test includes svg rendering either with built-in renderer or [nanoSVG](https://github.com/memononen/nanosvg)
 
 ## Requirements:
 
index b779737fde829a29a8b80dfa98181b9bb3c28ff9..c558976c07df3f849fe569c5bcb7ad056a613c29 100644 (file)
@@ -554,7 +554,7 @@ void _curve_to (VkvgContext ctx, float x1, float y1, float x2, float y2, float x
        //compute dyn distanceTolerance depending on current scale
        float sx = 1, sy = 1;
        vkvg_matrix_get_scale (&ctx->pushConsts.mat, &sx, &sy);
-       float distanceTolerance = fabs(1.0f / fmaxf(sx,sy));
+       float distanceTolerance = fabs(0.25f / fmaxf(sx,sy));
 
        _recursive_bezier (ctx, distanceTolerance, cp.x, cp.y, x1, y1, x2, y2, x3, y3, 0);
        /*cp.x = x3;