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