diff options
| author | Kenichi Handa | 2006-08-01 02:40:50 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2006-08-01 02:40:50 +0000 |
| commit | f0432f81a1d96a237f933ac82c1705bb5ca4cdf9 (patch) | |
| tree | 9b05332cad8891453cf56773f6f1e6c103229b12 /src | |
| parent | a90fc9aa6969f0bdf4cd19fed5b29c79e5856e8c (diff) | |
| download | emacs-f0432f81a1d96a237f933ac82c1705bb5ca4cdf9.tar.gz emacs-f0432f81a1d96a237f933ac82c1705bb5ca4cdf9.zip | |
(ftfont_pattern_entity): If the pattern doesn't contain
FC_SPACING, don't assuce FC_MONO.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ftfont.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ftfont.c b/src/ftfont.c index 6c85bbf7896..9bdb2146d2c 100644 --- a/src/ftfont.c +++ b/src/ftfont.c | |||
| @@ -140,7 +140,7 @@ ftfont_pattern_entity (p, frame, registry) | |||
| 140 | ASET (entity, FONT_SIZE_INDEX, make_number (0)); | 140 | ASET (entity, FONT_SIZE_INDEX, make_number (0)); |
| 141 | 141 | ||
| 142 | if (FcPatternGetInteger (p, FC_SPACING, 0, &numeric) != FcResultMatch) | 142 | if (FcPatternGetInteger (p, FC_SPACING, 0, &numeric) != FcResultMatch) |
| 143 | numeric = FC_MONO; | 143 | numeric = -1; |
| 144 | file = FcStrCopy (file); | 144 | file = FcStrCopy (file); |
| 145 | if (! file) | 145 | if (! file) |
| 146 | return Qnil; | 146 | return Qnil; |
| @@ -151,7 +151,8 @@ ftfont_pattern_entity (p, frame, registry) | |||
| 151 | 151 | ||
| 152 | if (FcPatternAddString (p, FC_FILE, file) == FcFalse | 152 | if (FcPatternAddString (p, FC_FILE, file) == FcFalse |
| 153 | || (charset && FcPatternAddCharSet (p, FC_CHARSET, charset) == FcFalse) | 153 | || (charset && FcPatternAddCharSet (p, FC_CHARSET, charset) == FcFalse) |
| 154 | || FcPatternAddInteger (p, FC_SPACING, numeric) == FcFalse) | 154 | || (numeric >= 0 |
| 155 | && FcPatternAddInteger (p, FC_SPACING, numeric) == FcFalse)) | ||
| 155 | { | 156 | { |
| 156 | FcPatternDestroy (p); | 157 | FcPatternDestroy (p); |
| 157 | return Qnil; | 158 | return Qnil; |