(realize_x_face): If the font-related face attributes
authorKenichi Handa <handa@m17n.org>
Thu, 5 Jun 2008 04:14:48 +0000 (04:14 +0000)
committerKenichi Handa <handa@m17n.org>
Thu, 5 Jun 2008 04:14:48 +0000 (04:14 +0000)
are the same s those of default face, realize a new fontset
from default->fontset.

src/xfaces.c

index 2b85cfb..74b53ed 100644 (file)
@@ -5776,7 +5776,8 @@ realize_x_face (cache, attrs)
       && lface_same_font_attributes_p (default_face->lface, attrs))
     {
       face->font = default_face->font;
-      face->fontset = make_fontset_for_ascii_face (f, -1, face);
+      face->fontset
+       = make_fontset_for_ascii_face (f, default_face->fontset, face);
     }
   else
     {