Text: Se puede especificar el nivel de zoom del texto
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user