Skip to content

Commit

Permalink
fontsrv: skip only the surrogate pairs
Browse files Browse the repository at this point in the history
fontsrv wasn't rendering fontawesome icons,
which uses the private use area around 0xf000.
  • Loading branch information
mjl- authored and 0intro committed Mar 23, 2018
1 parent 72fc31a commit 4ebaf18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cmd/fontsrv/osx.c
Expand Up @@ -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]))
Expand Down

0 comments on commit 4ebaf18

Please sign in to comment.