Text: Se puede especificar el nivel de zoom del texto

This commit is contained in:
2023-05-07 12:56:57 +02:00
parent 7725f8ab3e
commit 5f32aba46f

View File

@@ -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;