From bc3459ad20fb65e1c9817b6f409855cc0a532fc4 Mon Sep 17 00:00:00 2001 From: Jaremy Creechley Date: Sun, 20 Feb 2022 00:06:11 -0800 Subject: [PATCH] fix text input lineheight --- src/fidget.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fidget.nim b/src/fidget.nim index 4c439815..c8ef8e4e 100644 --- a/src/fidget.nim +++ b/src/fidget.nim @@ -224,7 +224,7 @@ proc font*( current.textStyle.fontFamily = fontFamily current.textStyle.fontSize = fontSize current.textStyle.fontWeight = fontWeight - current.textStyle.lineHeight = lineHeight + current.textStyle.lineHeight = if lineHeight != 0.0: lineHeight else: fontSize current.textStyle.textAlignHorizontal = textAlignHorizontal current.textStyle.textAlignVertical = textAlignVertical