Fix previous commit.

We want to unset FT_FACE_FLAG_SCALABLE only if there are bitmap
strikes in the font.

* src/truetype/ttobjs.c (tt_face_init): Implement it.

* docs/CHANGES: Updated.
diff --git a/ChangeLog b/ChangeLog
index 077299e..a0bfb66 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2011-07-03  Werner Lemberg  <wl@gnu.org>
+
+	Fix previous commit.
+
+	We want to unset FT_FACE_FLAG_SCALABLE only if there are bitmap
+	strikes in the font.
+
+	* src/truetype/ttobjs.c (tt_face_init): Implement it.
+
+	* docs/CHANGES: Updated.
+
 2011-07-02  Just Fill Bugs  <mozbugbox@yahoo.com.au>
 
 	Fix Savannah bug #33246.
diff --git a/docs/CHANGES b/docs/CHANGES
index 603f18a..d094100 100644
--- a/docs/CHANGES
+++ b/docs/CHANGES
@@ -20,6 +20,12 @@
       . Various stroking glitches has been fixed.
 
 
+  II. MISCELLANEOUS
+
+      - SFNT bitmap fonts which contain an outline glyph for `.notdef'
+        only no longer set the FT_FACE_FLAG_SCALABLE flag.
+
+
 ======================================================================
 
 CHANGES BETWEEN 2.4.4 and 2.4.5
diff --git a/src/truetype/ttobjs.c b/src/truetype/ttobjs.c
index 66379ab..d77c3c4 100644
--- a/src/truetype/ttobjs.c
+++ b/src/truetype/ttobjs.c
@@ -553,8 +553,10 @@
         error = tt_face_load_prep( face, stream );
 
       /* Check the scalable flag based on `loca'. */
-      if ( !ttface->internal->incremental_interface                  &&
-           face->glyph_locations && tt_check_single_notdef( ttface ) )
+      if ( !ttface->internal->incremental_interface &&
+           ttface->num_fixed_sizes                  &&
+           face->glyph_locations                    &&
+           tt_check_single_notdef( ttface )         )
       {
         FT_TRACE5(( "tt_face_init:"
                     " Only the `.notdef' glyph has an outline.\n"
@@ -576,7 +578,9 @@
         error = tt_face_load_prep( face, stream );
 
       /* Check the scalable flag based on `loca'. */
-      if ( face->glyph_locations && tt_check_single_notdef( ttface ) )
+      if ( ttface->num_fixed_sizes          &&
+           face->glyph_locations            &&
+           tt_check_single_notdef( ttface ) )
       {
         FT_TRACE5(( "tt_face_init:"
                     " Only the `.notdef' glyph has an outline.\n"