From bd762f81a62305a4968884c13c1db5eca26a50ff Mon Sep 17 00:00:00 2001 From: Mikko Mononen Date: Wed, 30 Jul 2014 17:54:25 +0300 Subject: [PATCH] Fix for issue #142 - set default lineHeight to 1.0 --- src/nanovg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nanovg.c b/src/nanovg.c index d10f956..a5724b9 100644 --- a/src/nanovg.c +++ b/src/nanovg.c @@ -575,7 +575,7 @@ void nvgReset(NVGcontext* ctx) state->fontSize = 16.0f; state->letterSpacing = 0.0f; - state->lineHeight = 0.0f; + state->lineHeight = 1.0f; state->fontBlur = 0.0f; state->textAlign = NVG_ALIGN_LEFT | NVG_ALIGN_BASELINE; state->fontId = 0;