plan9port

[fork] Plan 9 from user space
git clone git://src.adamsgaard.dk/plan9port # fast
git clone https://src.adamsgaard.dk/plan9port.git # slow
Log | Files | Refs | README | LICENSE Back to index

commit 4ebaf18e9234bf58aae7a5c47fc15ec4c80812b6
parent 72fc31acb3d91224d1ebf8769076cc3c4e2d2ed5
Author: Mechiel Lukkien <mechiel@ueber.net>
Date:   Sat,  6 Jan 2018 18:01:55 +0100

fontsrv: skip only the surrogate pairs

fontsrv wasn't rendering fontawesome icons,
which uses the private use area around 0xf000.

Diffstat:
Msrc/cmd/fontsrv/osx.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/cmd/fontsrv/osx.c b/src/cmd/fontsrv/osx.c @@ -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]))