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
71409f90b4
commit
5a5d97a100
6
figlet.c
6
figlet.c
@ -1348,8 +1348,8 @@ inchr c;
|
|||||||
|
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
char smushem(lch,rch)
|
outchr smushem(lch,rch)
|
||||||
char lch,rch;
|
outchr lch,rch;
|
||||||
{
|
{
|
||||||
if (lch==' ') return rch;
|
if (lch==' ') return rch;
|
||||||
if (rch==' ') return lch;
|
if (rch==' ') return lch;
|
||||||
@ -1437,7 +1437,7 @@ int smushamt()
|
|||||||
{
|
{
|
||||||
int maxsmush,amt;
|
int maxsmush,amt;
|
||||||
int row,linebd,charbd;
|
int row,linebd,charbd;
|
||||||
char ch1,ch2;
|
outchr ch1,ch2;
|
||||||
|
|
||||||
if ((smushmode & (SM_SMUSH | SM_KERN)) == 0) {
|
if ((smushmode & (SM_SMUSH | SM_KERN)) == 0) {
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user