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:
Claudio Matsuoka 2011-01-24 22:41:36 -02:00
parent 6dc0a00468
commit 08796056ab

View File

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