Commit 710354b8e9f7c7c44bdf1cb087625f7a16e3922a

David Turner 2000-08-16T17:04:22

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).

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff --git a/src/base/ftobjs.c b/src/base/ftobjs.c
index a2031d5..ab2fe89 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 ) &&