From f89f5cdf8e565a6d75d79fe3435d7f3b7c42020d Mon Sep 17 00:00:00 2001 From: David Turner Date: Wed, 16 Aug 2000 17:04:22 +0000 Subject: [PATCH] fixed the bug that prevented bitmap formats to be loaded correctly when the auto-hinter is used (symptom: "winfonts" driver didn't load bitmaps correctly). --- src/base/ftobjs.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/base/ftobjs.c b/src/base/ftobjs.c index a2031d5f4..ab2fe89f7 100644 --- a/src/base/ftobjs.c +++ b/src/base/ftobjs.c @@ -979,8 +979,10 @@ /* do we need to load the glyph through the auto-hinter? */ library = driver->root.library; hinter = library->auto_hinter; - autohint = hinter && - !( load_flags & ( FT_LOAD_NO_SCALE | FT_LOAD_NO_HINTING ) ); + autohint = hinter && + !( load_flags & ( FT_LOAD_NO_SCALE | FT_LOAD_NO_HINTING ) ) && + FT_DRIVER_IS_SCALABLE(driver) && + FT_DRIVER_USES_OUTLINES(driver); if ( autohint ) { if ( FT_DRIVER_HAS_HINTER( driver ) &&