Commit bf745003e9f2edde469cfbf162a36045529fdff7

Werner Lemberg 2012-09-29T22:40:40

[autofit] Minor optimization. * src/autofit/afglobals.c (af_face_globals_compute_script_coverage): Add loop condition.

diff --git a/ChangeLog b/ChangeLog
index d96c746..e18545e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2012-09-29  Werner Lemberg  <wl@gnu.org>
 
+	[autofit] Minor optimization.
+
+	* src/autofit/afglobals.c (af_face_globals_compute_script_coverage):
+	Add loop condition.
+
+2012-09-29  Werner Lemberg  <wl@gnu.org>
+
 	[autofit] Fix thinko.
 
 	* src/autofit/aftypes.h (AF_SCRIPT):
diff --git a/src/autofit/afglobal.c b/src/autofit/afglobal.c
index 27a883a..3c1e837 100644
--- a/src/autofit/afglobal.c
+++ b/src/autofit/afglobal.c
@@ -135,6 +135,7 @@
      *  By default, all uncovered glyphs are set to the fallback script.
      *  XXX: Shouldn't we disable hinting or do something similar?
      */
+    if ( globals->module->fallback_script != AF_SCRIPT_NONE )
     {
       FT_Long  nn;