comparison src/xfaces.c @ 28263:73181b84ea57

(lface_same_font_attributes_p): Compare font attributes as strings only if both are known to be strings.
author Gerd Moellmann <gerd@gnu.org>
date Wed, 22 Mar 2000 12:08:11 +0000
parents 2f636fd2f714
children 26f2a2e9a2b5
comparison
equal deleted inserted replaced
28262:5fafac497e27 28263:73181b84ea57
4430 && EQ (lface1[LFACE_SWIDTH_INDEX], lface2[LFACE_SWIDTH_INDEX]) 4430 && EQ (lface1[LFACE_SWIDTH_INDEX], lface2[LFACE_SWIDTH_INDEX])
4431 && EQ (lface1[LFACE_WEIGHT_INDEX], lface2[LFACE_WEIGHT_INDEX]) 4431 && EQ (lface1[LFACE_WEIGHT_INDEX], lface2[LFACE_WEIGHT_INDEX])
4432 && EQ (lface1[LFACE_SLANT_INDEX], lface2[LFACE_SLANT_INDEX]) 4432 && EQ (lface1[LFACE_SLANT_INDEX], lface2[LFACE_SLANT_INDEX])
4433 && (EQ (lface1[LFACE_FONT_INDEX], lface2[LFACE_FONT_INDEX]) 4433 && (EQ (lface1[LFACE_FONT_INDEX], lface2[LFACE_FONT_INDEX])
4434 || (STRINGP (lface1[LFACE_FONT_INDEX]) 4434 || (STRINGP (lface1[LFACE_FONT_INDEX])
4435 && STRINGP (lface2[LFACE_FONT_INDEX])
4435 && xstricmp (XSTRING (lface1[LFACE_FONT_INDEX])->data, 4436 && xstricmp (XSTRING (lface1[LFACE_FONT_INDEX])->data,
4436 XSTRING (lface2[LFACE_FONT_INDEX])->data)))); 4437 XSTRING (lface2[LFACE_FONT_INDEX])->data))));
4437 } 4438 }
4438 4439
4439 4440