aboutsummaryrefslogtreecommitdiffstats
path: root/src/macfont.m
diff options
context:
space:
mode:
authorYAMAMOTO Mitsuharu2019-06-30 16:09:56 +0900
committerYAMAMOTO Mitsuharu2019-06-30 16:09:56 +0900
commit36a8024e2b2e5e8714f8e636657c898a4bffaafb (patch)
tree911a72d94956f7ff3d23f3bc083277a4d35bd5f7 /src/macfont.m
parente2d8c1e8bcfaa107be653758ed6088fcb593d5ac (diff)
downloademacs-36a8024e2b2e5e8714f8e636657c898a4bffaafb.tar.gz
emacs-36a8024e2b2e5e8714f8e636657c898a4bffaafb.zip
Fix negation in elements of OTF feature list
* src/ftfont.c (ftfont_get_open_type_spec): * src/macfont.m (macfont_get_open_type_spec): Take bitwise or instead of and.
Diffstat (limited to 'src/macfont.m')
-rw-r--r--src/macfont.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/macfont.m b/src/macfont.m
index abdf0ecfe59..f736fbf0e1e 100644
--- a/src/macfont.m
+++ b/src/macfont.m
@@ -1824,7 +1824,7 @@ macfont_get_open_type_spec (Lisp_Object otf_spec)
1824 unsigned int tag; 1824 unsigned int tag;
1825 1825
1826 OTF_SYM_TAG (XCAR (val), tag); 1826 OTF_SYM_TAG (XCAR (val), tag);
1827 spec->features[i][j++] = negative ? tag & 0x80000000 : tag; 1827 spec->features[i][j++] = negative ? tag | 0x80000000 : tag;
1828 } 1828 }
1829 } 1829 }
1830 spec->nfeatures[i] = j; 1830 spec->nfeatures[i] = j;