diff options
| author | Jason Rumney | 2008-08-02 21:26:08 +0000 |
|---|---|---|
| committer | Jason Rumney | 2008-08-02 21:26:08 +0000 |
| commit | 4ff1bf172efc2afd5dd76bd3e457ae7b816a747e (patch) | |
| tree | 9e0417f208de2d6dc5e87dd383f9fa31008df865 /src/w32font.c | |
| parent | ac1831635bc3132f02e10cc855665a67e5085529 (diff) | |
| download | emacs-4ff1bf172efc2afd5dd76bd3e457ae7b816a747e.tar.gz emacs-4ff1bf172efc2afd5dd76bd3e457ae7b816a747e.zip | |
(compute_metrics): Don't mess with glyph_idx setting here.
Diffstat (limited to 'src/w32font.c')
| -rw-r--r-- | src/w32font.c | 8 |
1 files changed, 0 insertions, 8 deletions
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 | } |