From: Jean-Philippe Bruyère Date: Wed, 2 Mar 2022 12:25:33 +0000 (+0100) Subject: replace internal call to public api (move_to) with private api calls X-Git-Url: https://git.osiis.dedyn.io/?a=commitdiff_plain;h=0a605b94e549ddef77a7a7ae2a1babbe58ca2310;p=jp%2Fvkvg.git replace internal call to public api (move_to) with private api calls --- diff --git a/src/vkvg_fonts.c b/src/vkvg_fonts.c index 7370050..a4dce41 100644 --- a/src/vkvg_fonts.c +++ b/src/vkvg_fonts.c @@ -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)