From 5f32aba46f9ac0e93a21d2b9cbf4c26bba3868b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20Valor=20Mart=C3=ADnez?= Date: Sun, 7 May 2023 12:56:57 +0200 Subject: [PATCH] Text: Se puede especificar el nivel de zoom del texto --- units/text.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/units/text.cpp b/units/text.cpp index c90544b..af56872 100644 --- a/units/text.cpp +++ b/units/text.cpp @@ -247,7 +247,7 @@ int Text::lenght(string text, int kerning) int shift = 0; for (int i = 0; i < (int)text.length(); ++i) - shift += (offset[int(text[i])].w + kerning); + shift += (offset[int(text[i])].w + kerning) * zoom; // Descuenta el kerning del Ășltimo caracter return shift - kerning;