Mercurial > emacs
comparison src/xfaces.c @ 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 | 1fa8e6ab6455 |
children | 5a0d447b7eea |
comparison
equal
deleted
inserted
replaced
30210:54603a3bd588 | 30211:8d8aa26c6884 |
---|---|
5923 = make_fontset_for_ascii_face (f, default_face->fontset); | 5923 = make_fontset_for_ascii_face (f, default_face->fontset); |
5924 } | 5924 } |
5925 else | 5925 else |
5926 { | 5926 { |
5927 /* If the face attribute ATTRS specifies a fontset, use it as | 5927 /* If the face attribute ATTRS specifies a fontset, use it as |
5928 the base of a new realized fontset. Otherwise, use the | 5928 the base of a new realized fontset. Otherwise, use the same |
5929 default fontset as the base. The base determines registry | 5929 base fontset as of the default face. The base determines |
5930 and encoding of a font. It may also determine foundry and | 5930 registry and encoding of a font. It may also determine |
5931 family. The other fields of font name pattern are | 5931 foundry and family. The other fields of font name pattern |
5932 constructed from ATTRS. */ | 5932 are constructed from ATTRS. */ |
5933 face->fontset | 5933 int fontset = face_fontset (attrs); |
5934 = make_fontset_for_ascii_face (f, face_fontset (attrs)); | 5934 |
5935 if (fontset == -1) | |
5936 fontset = default_face->fontset; | |
5937 face->fontset = make_fontset_for_ascii_face (f, fontset); | |
5935 face->font = NULL; /* to force realize_face to load font */ | 5938 face->font = NULL; /* to force realize_face to load font */ |
5936 } | 5939 } |
5937 | 5940 |
5938 /* Load colors, and set remaining attributes. */ | 5941 /* Load colors, and set remaining attributes. */ |
5939 | 5942 |