diff options
| author | Kenichi Handa | 2009-06-10 01:27:10 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2009-06-10 01:27:10 +0000 |
| commit | 9903d1e69c79a0260a2747206e48e44b862b9ac1 (patch) | |
| tree | 747b9a2b53009c65e7a34385d9b6da215f2119f9 /src | |
| parent | b8321d869395954ff005880866320784e24e334c (diff) | |
| download | emacs-9903d1e69c79a0260a2747206e48e44b862b9ac1.tar.gz emacs-9903d1e69c79a0260a2747206e48e44b862b9ac1.zip | |
(font_parse_family_registry): Fix for one-char foundry.
(font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/font.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index a62284d5916..21b69dc37dd 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2009-06-10 Kenichi Handa <handa@m17n.org> | ||
| 2 | |||
| 3 | * font.c (font_parse_family_registry): Fix for one-char foundry. | ||
| 4 | (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX]. | ||
| 5 | |||
| 1 | 2009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change) | 6 | 2009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change) |
| 2 | 7 | ||
| 3 | * process.c (status_message): Fix handling of multibyte signal | 8 | * process.c (status_message): Fix handling of multibyte signal |
diff --git a/src/font.c b/src/font.c index 5adec3e1193..bc21fce3859 100644 --- a/src/font.c +++ b/src/font.c | |||
| @@ -1844,7 +1844,7 @@ font_parse_family_registry (family, registry, font_spec) | |||
| 1844 | p1 = index (p0, '-'); | 1844 | p1 = index (p0, '-'); |
| 1845 | if (p1) | 1845 | if (p1) |
| 1846 | { | 1846 | { |
| 1847 | if ((*p0 != '*' || p1 - p0 > 1) | 1847 | if ((*p0 != '*' && p1 - p0 > 0) |
| 1848 | && NILP (AREF (font_spec, FONT_FOUNDRY_INDEX))) | 1848 | && NILP (AREF (font_spec, FONT_FOUNDRY_INDEX))) |
| 1849 | Ffont_put (font_spec, QCfoundry, font_intern_prop (p0, p1 - p0, 1)); | 1849 | Ffont_put (font_spec, QCfoundry, font_intern_prop (p0, p1 - p0, 1)); |
| 1850 | p1++; | 1850 | p1++; |
| @@ -2326,7 +2326,7 @@ font_sort_entities (vec, prefer, frame, best_only) | |||
| 2326 | USE_SAFE_ALLOCA; | 2326 | USE_SAFE_ALLOCA; |
| 2327 | 2327 | ||
| 2328 | len = ASIZE (vec); | 2328 | len = ASIZE (vec); |
| 2329 | for (i = FONT_WEIGHT_INDEX; i <= FONT_DPI_INDEX; i++) | 2329 | for (i = FONT_WEIGHT_INDEX; i <= FONT_AVGWIDTH_INDEX; i++) |
| 2330 | prefer_prop[i] = AREF (prefer, i); | 2330 | prefer_prop[i] = AREF (prefer, i); |
| 2331 | if (FLOATP (prefer_prop[FONT_SIZE_INDEX])) | 2331 | if (FLOATP (prefer_prop[FONT_SIZE_INDEX])) |
| 2332 | prefer_prop[FONT_SIZE_INDEX] | 2332 | prefer_prop[FONT_SIZE_INDEX] |