[win32] Really return unhinted font metrics if metrics hinting is off

This commit is contained in:
Behdad Esfahbod 2007-03-16 18:21:36 -04:00
parent 47e71eef5f
commit 6f96a5dd99

View file

@ -693,7 +693,7 @@ _cairo_win32_scaled_font_set_metrics (cairo_win32_scaled_font_t *scaled_font)
if (!hdc)
return CAIRO_STATUS_NO_MEMORY;
if (scaled_font->preserve_axes) {
if (scaled_font->preserve_axes || scaled_font->base.options.hint_metrics == CAIRO_HINT_METRICS_OFF) {
/* For 90-degree rotations (including 0), we get the metrics
* from the GDI in logical space, then convert back to font space
*/