summaryrefslogtreecommitdiffstats
path: root/src/text.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/text.c')
-rw-r--r--src/text.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/text.c b/src/text.c
index ca9a126..d5779c4 100644
--- a/src/text.c
+++ b/src/text.c
@@ -301,6 +301,10 @@ ganv_text_draw(GanvItem* item,
double wy = impl->coords.y;
ganv_item_i2w(item, &wx, &wy);
+ if (impl->needs_layout) {
+ ganv_text_layout(text);
+ }
+
// Round to the nearest pixel so text isn't blurry
wx = lrint(wx);
wy = lrint(wy);