Fix kerning with UCS4 characters
Use outchr as the ouput character type (instead of char) when computing kerning, to prevent corruption with tlf2 fonts Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
This commit is contained in:
parent
6dc0a00468
commit
08796056ab
6
figlet.c
6
figlet.c
@ -1348,8 +1348,8 @@ inchr c;
|
||||
|
||||
****************************************************************************/
|
||||
|
||||
char smushem(lch,rch)
|
||||
char lch,rch;
|
||||
outchr smushem(lch,rch)
|
||||
outchr lch,rch;
|
||||
{
|
||||
if (lch==' ') return rch;
|
||||
if (rch==' ') return lch;
|
||||
@ -1437,7 +1437,7 @@ int smushamt()
|
||||
{
|
||||
int maxsmush,amt;
|
||||
int row,linebd,charbd;
|
||||
char ch1,ch2;
|
||||
outchr ch1,ch2;
|
||||
|
||||
if ((smushmode & (SM_SMUSH | SM_KERN)) == 0) {
|
||||
return 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user