comparison src/w32font.c @ 100465:471df3e0268b

(w32font_has_char): Always return -1.
author Jason Rumney <jasonr@gnu.org>
date Wed, 17 Dec 2008 14:39:47 +0000
parents 4be3711ceff9
children e038c1a8307c
comparison
equal deleted inserted replaced
100464:172cb569b9a4 100465:471df3e0268b
306 int 306 int
307 w32font_has_char (entity, c) 307 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
314 extra = AREF (entity, FONT_EXTRA_INDEX); 320 extra = AREF (entity, FONT_EXTRA_INDEX);
315 if (!CONSP (extra)) 321 if (!CONSP (extra))
331 can't be certain until we open the font. */ 337 can't be certain until we open the font. */
332 if (NILP (script) || memq_no_quit (script, supported_scripts)) 338 if (NILP (script) || memq_no_quit (script, supported_scripts))
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.
341 Return a glyph code of FONT for characer C (Unicode code point). 350 Return a glyph code of FONT for characer C (Unicode code point).
342 If FONT doesn't have such a glyph, return FONT_INVALID_CODE. 351 If FONT doesn't have such a glyph, return FONT_INVALID_CODE.