cmdbox - allow multiple + or -'s for font command to go up or down more
so f+++ will increase font size 3 times in a row within a single command, as will f--- do the reverse etc. ... use as many +'s and -'s and needed.
This commit is contained in:
parent
557ad82e8d
commit
4f75b58d6a
|
@ -61,11 +61,23 @@ _termcmd_font_size(Evas_Object *obj,
|
||||||
}
|
}
|
||||||
else if (cmd[0] == '+') // size up
|
else if (cmd[0] == '+') // size up
|
||||||
{
|
{
|
||||||
new_size = ((double)config->font.size * 1.4) + 1;
|
int i;
|
||||||
|
|
||||||
|
new_size = config->font.size;
|
||||||
|
for (i = 0; cmd[i] == '+'; i++)
|
||||||
|
{
|
||||||
|
new_size = ((double)new_size * 1.4) + 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else if (cmd[0] == '-') // size down
|
else if (cmd[0] == '-') // size down
|
||||||
{
|
{
|
||||||
new_size = (double)(config->font.size - 1) / 1.4;
|
int i;
|
||||||
|
|
||||||
|
new_size = config->font.size;
|
||||||
|
for (i = 0; cmd[i] == '-'; i++)
|
||||||
|
{
|
||||||
|
new_size = (double)(new_size - 1) / 1.4;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue