From cc37eea12052eb1c62a917e1e96bc75c9bd46b11 Mon Sep 17 00:00:00 2001 From: Caleb Connolly Date: Sat, 6 Aug 2022 19:35:04 +0100 Subject: [PATCH] text: half space char width --- include/nanosvgrast.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/nanosvgrast.h b/include/nanosvgrast.h index 9163b71..32960a3 100644 --- a/include/nanosvgrast.h +++ b/include/nanosvgrast.h @@ -1413,7 +1413,7 @@ void nsvgRasterizeText(NSVGrasterizer* r, shape = shapes[i]; if (!shape) { if (text[i] == ' ') - tx += charWidth; + tx += charWidth / 2.f; continue; } if (!(shape->flags & NSVG_FLAGS_VISIBLE))