From 1340a0a555f21cbc3b16f3438345f9dbb9c24183 Mon Sep 17 00:00:00 2001 From: Felix Kratz Date: Thu, 6 Oct 2022 20:39:09 +0200 Subject: [PATCH] fix for text height --- src/text.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/text.c b/src/text.c index 3a359dc..0450a5a 100644 --- a/src/text.c +++ b/src/text.c @@ -101,7 +101,7 @@ void text_prepare_line(struct text* text) { kCTLineBoundsUseGlyphPathBounds); text->bounds.size.width = (uint32_t) (text->bounds.size.width + 1.5); - text->bounds.size.height = (uint32_t) (text->bounds.size.height + 0.5); + text->bounds.size.height = (uint32_t) (text->bounds.size.height + 1.5); text->bounds.origin.x = (uint32_t) (text->bounds.origin.x + 0.5); text->line.color = text->highlight ? text->highlight_color : text->color;