Mercurial > emacs
changeset 30211:8d8aa26c6884
(realize_x_face): Make fontset using the base of the
default'face's fontset, not using the default fontset.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Fri, 14 Jul 2000 12:19:02 +0000 |
parents | 54603a3bd588 |
children | f45d26144129 |
files | src/xfaces.c |
diffstat | 1 files changed, 10 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/src/xfaces.c Fri Jul 14 12:07:29 2000 +0000 +++ b/src/xfaces.c Fri Jul 14 12:19:02 2000 +0000 @@ -5925,13 +5925,16 @@ else { /* If the face attribute ATTRS specifies a fontset, use it as - the base of a new realized fontset. Otherwise, use the - default fontset as the base. The base determines registry - and encoding of a font. It may also determine foundry and - family. The other fields of font name pattern are - constructed from ATTRS. */ - face->fontset - = make_fontset_for_ascii_face (f, face_fontset (attrs)); + the base of a new realized fontset. Otherwise, use the same + base fontset as of the default face. The base determines + registry and encoding of a font. It may also determine + foundry and family. The other fields of font name pattern + are constructed from ATTRS. */ + int fontset = face_fontset (attrs); + + if (fontset == -1) + fontset = default_face->fontset; + face->fontset = make_fontset_for_ascii_face (f, fontset); face->font = NULL; /* to force realize_face to load font */ }