Mercurial > emacs
changeset 100465:471df3e0268b
(w32font_has_char): Always return -1.
author | Jason Rumney <jasonr@gnu.org> |
---|---|
date | Wed, 17 Dec 2008 14:39:47 +0000 |
parents | 172cb569b9a4 |
children | c20359810a75 |
files | src/w32font.c |
diffstat | 1 files changed, 11 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/w32font.c Wed Dec 17 14:29:39 2008 +0000 +++ b/src/w32font.c Wed Dec 17 14:39:47 2008 +0000 @@ -308,6 +308,12 @@ Lisp_Object entity; int c; { + /* We can't be certain about which characters a font will support until + we open it. Checking the scripts that the font supports turns out + to not be reliable. */ + return -1; + +#if 0 Lisp_Object supported_scripts, extra, script; DWORD mask; @@ -333,8 +339,11 @@ return -1; /* Font reports what scripts it supports, and none of them are the script - the character is from, so it is a definite no. */ - return 0; + the character is from. But we still can't be certain, as some fonts + will contain some/most/all of the characters in that script without + claiming support for it. */ + return -1; +#endif } /* w32 implementation of encode_char for font backend.