]> O.S.I.I.S - jp/vkvg.git/commitdiff
replace internal call to public api (move_to) with private api calls
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>
Wed, 2 Mar 2022 12:25:33 +0000 (13:25 +0100)
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>
Wed, 2 Mar 2022 12:25:33 +0000 (13:25 +0100)
src/vkvg_fonts.c

index 7370050f539858a91c84d7f09bfa03dcd11cee8b..a4dce4166e9047a6826d0f701bbd947902ff4dfd 100644 (file)
@@ -759,7 +759,9 @@ void _font_cache_show_text_run (VkvgContext ctx, VkvgText tr) {
                pen.y -= (tr->glyphs[i].y_advance >> 6);
        }
 
-       vkvg_move_to(ctx, pen.x, pen.y);
+       //equivalent to a moveto
+       _finish_path(ctx);
+       _add_point (ctx, pen.x, pen.y);
        _flush_chars_to_tex(tr->dev, tr->font); 
        UNLOCK_FONTCACHE (ctx->dev)