aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenichi Handa2009-07-09 01:06:18 +0000
committerKenichi Handa2009-07-09 01:06:18 +0000
commit635c75b1afbe13517521c324669720567c545e4a (patch)
tree4a35527aef54e90095bfa56890978acf8a6f877d /src
parent49405d0e1be811957433cb0c89a2fbe099fcf5b9 (diff)
downloademacs-635c75b1afbe13517521c324669720567c545e4a.tar.gz
emacs-635c75b1afbe13517521c324669720567c545e4a.zip
(fontset_find_font): Fix previous change.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog4
-rw-r--r--src/fontset.c20
2 files changed, 14 insertions, 10 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index e76892806cf..fec0b8ec0cd 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,7 @@
12009-07-09 Kenichi Handa <handa@m17n.org>
2
3 * fontset.c (fontset_find_font): Fix previous change.
4
12009-07-08 Michael Albinus <michael.albinus@gmx.de> 52009-07-08 Michael Albinus <michael.albinus@gmx.de>
2 6
3 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message) 7 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
diff --git a/src/fontset.c b/src/fontset.c
index 20b7c1a2565..b030887673c 100644
--- a/src/fontset.c
+++ b/src/fontset.c
@@ -575,25 +575,25 @@ fontset_find_font (fontset, c, face, id, fallback)
575 Lisp_Object font_def; 575 Lisp_Object font_def;
576 Lisp_Object font_entity, font_object; 576 Lisp_Object font_entity, font_object;
577 577
578 found_index = i;
578 if (i == 0) 579 if (i == 0)
579 { 580 {
580 /* Try the element matching with the charset ID at first. */
581 found_index = charset_matched;
582 if (charset_matched > 0) 581 if (charset_matched > 0)
583 { 582 {
583 /* Try the element matching with the charset ID at first. */
584 found_index = charset_matched;
585 /* Make this negative so that we don't come here in the
586 next loop. */
584 charset_matched = - charset_matched; 587 charset_matched = - charset_matched;
588 /* We must try the first element in the next loop. */
585 i--; 589 i--;
586 } 590 }
587 } 591 }
588 else if (i != - charset_matched) 592 else if (i == - charset_matched)
589 {
590 found_index = i;
591 }
592 else
593 { 593 {
594 /* We have already tried this element and the followings 594 /* We have already tried this element and the followings
595 that have the same font specifications. So, skip them 595 that have the same font specifications in the first
596 all. */ 596 iteration. So, skip them all. */
597 rfont_def = AREF (vec, i); 597 rfont_def = AREF (vec, i);
598 font_def = RFONT_DEF_FONT_DEF (rfont_def); 598 font_def = RFONT_DEF_FONT_DEF (rfont_def);
599 for (; i + 1 < ASIZE (vec); i++) 599 for (; i + 1 < ASIZE (vec); i++)
@@ -610,7 +610,7 @@ fontset_find_font (fontset, c, face, id, fallback)
610 rfont_def = AREF (vec, found_index); 610 rfont_def = AREF (vec, found_index);
611 if (NILP (rfont_def)) 611 if (NILP (rfont_def))
612 { 612 {
613 if (charset_matched < 0) 613 if (i < 0)
614 continue; 614 continue;
615 /* This is a sign of not to try the other fonts. */ 615 /* This is a sign of not to try the other fonts. */
616 return Qt; 616 return Qt;