aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Rumney2008-12-17 14:41:44 +0000
committerJason Rumney2008-12-17 14:41:44 +0000
commite6eee6aec1fb6f46c183fde2ca29cdb33cae2bf2 (patch)
tree7d6badc8181f958b2d14c9781e1f0ab98c08688b /src
parenta0bf411717769c6bcd68a8a7666d4e1a51024613 (diff)
downloademacs-e6eee6aec1fb6f46c183fde2ca29cdb33cae2bf2.tar.gz
emacs-e6eee6aec1fb6f46c183fde2ca29cdb33cae2bf2.zip
(w32font_has_char): Always return -1.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog4
-rw-r--r--src/w32font.c13
2 files changed, 15 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 95cbce4dbb0..b3b5f3371f7 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,7 @@
12008-12-17 Jason Rumney <jasonr@gnu.org>
2
3 * w32font.c (w32font_has_char): Always return -1.
4
12008-12-16 Kenichi Handa <handa@m17n.org> 52008-12-16 Kenichi Handa <handa@m17n.org>
2 6
3 * font.c (font_open_entity): Fix previous change. 7 * font.c (font_open_entity): Fix previous change.
diff --git a/src/w32font.c b/src/w32font.c
index f892adeb636..c5546ee9379 100644
--- a/src/w32font.c
+++ b/src/w32font.c
@@ -308,6 +308,12 @@ w32font_has_char (entity, c)
308 Lisp_Object entity; 308 Lisp_Object entity;
309 int c; 309 int c;
310{ 310{
311 /* We can't be certain about which characters a font will support until
312 we open it. Checking the scripts that the font supports turns out
313 to not be reliable. */
314 return -1;
315
316#if 0
311 Lisp_Object supported_scripts, extra, script; 317 Lisp_Object supported_scripts, extra, script;
312 DWORD mask; 318 DWORD mask;
313 319
@@ -333,8 +339,11 @@ w32font_has_char (entity, c)
333 return -1; 339 return -1;
334 340
335 /* Font reports what scripts it supports, and none of them are the script 341 /* Font reports what scripts it supports, and none of them are the script
336 the character is from, so it is a definite no. */ 342 the character is from. But we still can't be certain, as some fonts
337 return 0; 343 will contain some/most/all of the characters in that script without
344 claiming support for it. */
345 return -1;
346#endif
338} 347}
339 348
340/* w32 implementation of encode_char for font backend. 349/* w32 implementation of encode_char for font backend.