diff options
author | Mechiel Lukkien <mechiel@ueber.net> | 2018-01-06 18:01:55 +0100 |
---|---|---|
committer | David du Colombier <0intro@gmail.com> | 2018-03-23 12:05:33 +0100 |
commit | 4ebaf18e9234bf58aae7a5c47fc15ec4c80812b6 (patch) | |
tree | 03bef782a7d38aec676f361bd80b5ef93d7634f2 /src/cmd/fontsrv | |
parent | 72fc31acb3d91224d1ebf8769076cc3c4e2d2ed5 (diff) | |
download | plan9port-4ebaf18e9234bf58aae7a5c47fc15ec4c80812b6.tar.gz plan9port-4ebaf18e9234bf58aae7a5c47fc15ec4c80812b6.tar.bz2 plan9port-4ebaf18e9234bf58aae7a5c47fc15ec4c80812b6.zip |
fontsrv: skip only the surrogate pairs
fontsrv wasn't rendering fontawesome icons,
which uses the private use area around 0xf000.
Diffstat (limited to 'src/cmd/fontsrv')
-rw-r--r-- | src/cmd/fontsrv/osx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/fontsrv/osx.c b/src/cmd/fontsrv/osx.c index f48f5b49..adb007c2 100644 --- 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])) |