diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 4 | ||||
| -rw-r--r-- | src/w32font.c | 8 |
2 files changed, 4 insertions, 8 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index cd355044499..c74d93b9c64 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2008-08-02 Jason Rumney <jasonr@gnu.org> | ||
| 2 | |||
| 3 | * w32font.c (compute_metrics): Don't mess with glyph_idx setting here. | ||
| 4 | |||
| 1 | 2008-08-02 Eli Zaretskii <eliz@gnu.org> | 5 | 2008-08-02 Eli Zaretskii <eliz@gnu.org> |
| 2 | 6 | ||
| 3 | * alloc.c (NSTATICS): Bump to 0x640. | 7 | * alloc.c (NSTATICS): Bump to 0x640. |
diff --git a/src/w32font.c b/src/w32font.c index 4a2812560ee..74c74ee0750 100644 --- a/src/w32font.c +++ b/src/w32font.c | |||
| @@ -2265,14 +2265,6 @@ compute_metrics (dc, w32_font, code, metrics) | |||
| 2265 | metrics->width = gm.gmCellIncX; | 2265 | metrics->width = gm.gmCellIncX; |
| 2266 | metrics->status = W32METRIC_SUCCESS; | 2266 | metrics->status = W32METRIC_SUCCESS; |
| 2267 | } | 2267 | } |
| 2268 | else if (w32_font->glyph_idx) | ||
| 2269 | { | ||
| 2270 | /* Can't use glyph indexes after all. | ||
| 2271 | Avoid it in future, and clear any metrics that were based on | ||
| 2272 | glyph indexes. */ | ||
| 2273 | w32_font->glyph_idx = 0; | ||
| 2274 | clear_cached_metrics (w32_font); | ||
| 2275 | } | ||
| 2276 | else | 2268 | else |
| 2277 | metrics->status = W32METRIC_FAIL; | 2269 | metrics->status = W32METRIC_FAIL; |
| 2278 | } | 2270 | } |