1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-08 08:43:52 -08:00

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.
This commit is contained in:
YAMAMOTO Mitsuharu 2019-06-30 16:09:56 +09:00
parent e2d8c1e8bc
commit 36a8024e2b
2 changed files with 2 additions and 2 deletions

View file

@ -613,7 +613,7 @@ ftfont_get_open_type_spec (Lisp_Object otf_spec)
unsigned int tag;
OTF_SYM_TAG (XCAR (val), tag);
spec->features[i][j++] = negative ? tag & 0x80000000 : tag;
spec->features[i][j++] = negative ? tag | 0x80000000 : tag;
}
}
spec->nfeatures[i] = j;

View file

@ -1824,7 +1824,7 @@ macfont_get_open_type_spec (Lisp_Object otf_spec)
unsigned int tag;
OTF_SYM_TAG (XCAR (val), tag);
spec->features[i][j++] = negative ? tag & 0x80000000 : tag;
spec->features[i][j++] = negative ? tag | 0x80000000 : tag;
}
}
spec->nfeatures[i] = j;