diff options
| author | Lars Ingebrigtsen | 2019-11-17 17:32:37 +0100 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2019-11-17 17:32:37 +0100 |
| commit | 1c29ba034092660e73bce8c6ff459c75ff2c2d72 (patch) | |
| tree | bf577f35deeda40107e8f5e121b60d47617eebfb /src | |
| parent | b31f1987eb27a69d7c0eab9cce6eab8ba0857ec1 (diff) | |
| download | emacs-1c29ba034092660e73bce8c6ff459c75ff2c2d72.tar.gz emacs-1c29ba034092660e73bce8c6ff459c75ff2c2d72.zip | |
Handle FC_CHARCELL in xftfont_open
* src/xftfont.c (xftfont_open): FC_CHARCELL is apparently an alias
for FC_DUAL used in some east Asian fonts (bug#35079). Modelled
after a patch suggested by Kenichi Handa.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xftfont.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/xftfont.c b/src/xftfont.c index e0035808172..fa06d967369 100644 --- a/src/xftfont.c +++ b/src/xftfont.c | |||
| @@ -211,6 +211,9 @@ xftfont_open (struct frame *f, Lisp_Object entity, int pixel_size) | |||
| 211 | #ifdef FC_DUAL | 211 | #ifdef FC_DUAL |
| 212 | && spacing != FC_DUAL | 212 | && spacing != FC_DUAL |
| 213 | #endif /* FC_DUAL */ | 213 | #endif /* FC_DUAL */ |
| 214 | #ifdef FC_CHARCELL | ||
| 215 | && spacing != FC_CHARCELL | ||
| 216 | #endif /* FC_CHARCELL */ | ||
| 214 | ) | 217 | ) |
| 215 | { | 218 | { |
| 216 | font->min_width = font->max_width = font->average_width | 219 | font->min_width = font->max_width = font->average_width |