diff options
| author | Kenichi Handa | 2000-07-14 12:19:02 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2000-07-14 12:19:02 +0000 |
| commit | fc8c47972e9760f487a50dffb2fbef03f05aaa8c (patch) | |
| tree | 5a721204e19b351be441663f9f3143437436849d | |
| parent | 0693904a97ea817085852c9bfe4e0916384267dc (diff) | |
| download | emacs-fc8c47972e9760f487a50dffb2fbef03f05aaa8c.tar.gz emacs-fc8c47972e9760f487a50dffb2fbef03f05aaa8c.zip | |
(realize_x_face): Make fontset using the base of the
default'face's fontset, not using the default fontset.
| -rw-r--r-- | src/xfaces.c | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/src/xfaces.c b/src/xfaces.c index 30fa8b02be3..91655c8086a 100644 --- a/src/xfaces.c +++ b/src/xfaces.c | |||
| @@ -5925,13 +5925,16 @@ realize_x_face (cache, attrs, c, base_face) | |||
| 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 | ||