Mercurial > emacs
comparison src/xfaces.c @ 95567:4170d7f0d918
(realize_x_face): If the font-related face attributes
are the same s those of default face, realize a new fontset
from default->fontset.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Thu, 05 Jun 2008 04:14:48 +0000 |
parents | 6c85f5f5064c |
children | fa7d768bdd0b |
comparison
equal
deleted
inserted
replaced
95566:b3c0438c570b | 95567:4170d7f0d918 |
---|---|
5774 default_face = FACE_FROM_ID (f, DEFAULT_FACE_ID); | 5774 default_face = FACE_FROM_ID (f, DEFAULT_FACE_ID); |
5775 if (default_face | 5775 if (default_face |
5776 && lface_same_font_attributes_p (default_face->lface, attrs)) | 5776 && lface_same_font_attributes_p (default_face->lface, attrs)) |
5777 { | 5777 { |
5778 face->font = default_face->font; | 5778 face->font = default_face->font; |
5779 face->fontset = make_fontset_for_ascii_face (f, -1, face); | 5779 face->fontset |
5780 = make_fontset_for_ascii_face (f, default_face->fontset, face); | |
5780 } | 5781 } |
5781 else | 5782 else |
5782 { | 5783 { |
5783 /* If the face attribute ATTRS specifies a fontset, use it as | 5784 /* If the face attribute ATTRS specifies a fontset, use it as |
5784 the base of a new realized fontset. Otherwise, use the same | 5785 the base of a new realized fontset. Otherwise, use the same |