tfontsrv: skip only the surrogate pairs - plan9port - [fork] Plan 9 from user space
(HTM) git clone git://src.adamsgaard.dk/plan9port
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 4ebaf18e9234bf58aae7a5c47fc15ec4c80812b6
(DIR) parent 72fc31acb3d91224d1ebf8769076cc3c4e2d2ed5
(HTM) 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:
M src/cmd/fontsrv/osx.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
(DIR) diff --git a/src/cmd/fontsrv/osx.c b/src/cmd/fontsrv/osx.c
t@@ -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]))