fontsrv: skip only the surrogate pairs

fontsrv wasn't rendering fontawesome icons,
which uses the private use area around 0xf000.
This commit is contained in:
Mechiel Lukkien 2018-01-06 18:01:55 +01:00 committed by David du Colombier
parent 72fc31acb3
commit 4ebaf18e92

View file

@ -30,7 +30,7 @@ mapUnicode(char *name, int i)
{
int j;
if(0xd800 <= i && i < 0xe0000) // surrogate pairs, will crash OS X libraries!
if(0xd800 <= i && i < 0xe000) // surrogate pairs, will crash OS X libraries!
return 0xfffd;
for(j=0; j<nelem(skipquotemap); j++) {
if(strstr(name, skipquotemap[j]))