# HG changeset patch # User Jason Rumney # Date 1229524787 0 # Node ID 471df3e0268b5e46e64faf62764cc1dc69ae7872 # Parent 172cb569b9a468ff0b0ac27aceb189d636a1947c (w32font_has_char): Always return -1. diff -r 172cb569b9a4 -r 471df3e0268b src/w32font.c --- 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.