Commit 785f38573b479c2ae57d4e81be8b18fe21a84dba

Werner Lemberg 2013-12-31T09:45:10

[autofit] s/AF_STYLE_...._DEFAULT/AF_STYLE_...._DFLT/i.

diff --git a/ChangeLog b/ChangeLog
index 181cbe3..2580884 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2013-12-31  Werner Lemberg  <wl@gnu.org>
 
+	[autofit] s/AF_STYLE_...._DEFAULT/AF_STYLE_...._DFLT/i.
+
+2013-12-31  Werner Lemberg  <wl@gnu.org>
+
 	[autofit] Fix interface of `af_get_char_index'.
 
 	* src/autofit/hbshim.c (af_get_char_index): Return error value.
diff --git a/src/autofit/afcjk.c b/src/autofit/afcjk.c
index c396d69..a1f0dca 100644
--- a/src/autofit/afcjk.c
+++ b/src/autofit/afcjk.c
@@ -76,7 +76,7 @@
 
     FT_TRACE5(( "\n"
                 "cjk standard widths computation (style `%s')\n"
-                "===============================================\n"
+                "===================================================\n"
                 "\n",
                 af_style_names[metrics->root.style_class->style] ));
 
diff --git a/src/autofit/afglobal.c b/src/autofit/afglobal.c
index 9d82f94..cf121ac 100644
--- a/src/autofit/afglobal.c
+++ b/src/autofit/afglobal.c
@@ -335,7 +335,7 @@
 
     /* if we have a forced style (via `options'), use it, */
     /* otherwise look into `glyph_styles' array           */
-    if ( style == AF_STYLE_NONE_DEFAULT || style + 1 >= AF_STYLE_MAX )
+    if ( style == AF_STYLE_NONE_DFLT || style + 1 >= AF_STYLE_MAX )
       style = (AF_Style)( globals->glyph_styles[gindex] &
                           AF_STYLE_UNASSIGNED           );
 
diff --git a/src/autofit/afglobal.h b/src/autofit/afglobal.h
index b5a908d..0a7d273 100644
--- a/src/autofit/afglobal.h
+++ b/src/autofit/afglobal.h
@@ -66,9 +66,9 @@ FT_BEGIN_HEADER
 
   /* index of fallback style in `af_style_classes' */
 #ifdef AF_CONFIG_OPTION_CJK
-#define AF_STYLE_FALLBACK  AF_STYLE_HANI_DEFAULT
+#define AF_STYLE_FALLBACK  AF_STYLE_HANI_DFLT
 #else
-#define AF_STYLE_FALLBACK  AF_STYLE_NONE_DEFAULT
+#define AF_STYLE_FALLBACK  AF_STYLE_NONE_DFLT
 #endif
   /* default script for OpenType; ignored if HarfBuzz isn't used */
 #define AF_SCRIPT_DEFAULT  AF_SCRIPT_LATN
diff --git a/src/autofit/aflatin.c b/src/autofit/aflatin.c
index 279953f..fc1d443 100644
--- a/src/autofit/aflatin.c
+++ b/src/autofit/aflatin.c
@@ -63,7 +63,7 @@
 
     FT_TRACE5(( "\n"
                 "latin standard widths computation (style `%s')\n"
-                "================================================\n"
+                "=====================================================\n"
                 "\n",
                 af_style_names[metrics->root.style_class->style] ));
 
diff --git a/src/autofit/afloader.c b/src/autofit/afloader.c
index 80c3950..ac1f07d 100644
--- a/src/autofit/afloader.c
+++ b/src/autofit/afloader.c
@@ -530,13 +530,13 @@
     if ( !error )
     {
       AF_StyleMetrics  metrics;
-      FT_UInt          options = AF_STYLE_NONE_DEFAULT;
+      FT_UInt          options = AF_STYLE_NONE_DFLT;
 
 
 #ifdef FT_OPTION_AUTOFIT2
       /* XXX: undocumented hook to activate the latin2 writing system */
       if ( load_flags & ( 1UL << 20 ) )
-        options = AF_STYLE_LTN2_DEFAULT;
+        options = AF_STYLE_LTN2_DFLT;
 #endif
 
       error = af_face_globals_get_metrics( loader->globals, gindex,
diff --git a/src/autofit/afstyles.h b/src/autofit/afstyles.h
index b5eb362..85cbbca 100644
--- a/src/autofit/afstyles.h
+++ b/src/autofit/afstyles.h
@@ -26,42 +26,42 @@
   /* corresponding writing system, script, blue stringset, and     */
   /* coverage.                                                     */
 
-  STYLE( cyrl_default, CYRL_DEFAULT,
+  STYLE( cyrl_dflt, CYRL_DFLT,
          "Cyrillic default style",
          AF_WRITING_SYSTEM_LATIN,
          AF_SCRIPT_CYRL,
          AF_BLUE_STRINGSET_CYRL,
          AF_COVERAGE_DEFAULT )
 
-  STYLE( deva_default, DEVA_DEFAULT,
+  STYLE( deva_dflt, DEVA_DFLT,
          "Indic scripts default style",
          AF_WRITING_SYSTEM_INDIC,
          AF_SCRIPT_DEVA,
          (AF_Blue_Stringset)0, /* XXX */
          AF_COVERAGE_DEFAULT )
 
-  STYLE( grek_default, GREK_DEFAULT,
+  STYLE( grek_dflt, GREK_DFLT,
          "Greek default style",
          AF_WRITING_SYSTEM_LATIN,
          AF_SCRIPT_GREK,
          AF_BLUE_STRINGSET_GREK,
          AF_COVERAGE_DEFAULT )
 
-  STYLE( hani_default, HANI_DEFAULT,
+  STYLE( hani_dflt, HANI_DFLT,
          "CJKV ideographs default style",
          AF_WRITING_SYSTEM_CJK,
          AF_SCRIPT_HANI,
          AF_BLUE_STRINGSET_HANI,
          AF_COVERAGE_DEFAULT )
 
-  STYLE( hebr_default, HEBR_DEFAULT,
+  STYLE( hebr_dflt, HEBR_DFLT,
          "Hebrew default style",
          AF_WRITING_SYSTEM_LATIN,
          AF_SCRIPT_HEBR,
          AF_BLUE_STRINGSET_HEBR,
          AF_COVERAGE_DEFAULT )
 
-  STYLE( latn_default, LATN_DEFAULT,
+  STYLE( latn_dflt, LATN_DFLT,
          "Latin default style",
          AF_WRITING_SYSTEM_LATIN,
          AF_SCRIPT_LATN,
@@ -69,7 +69,7 @@
          AF_COVERAGE_DEFAULT )
 
 #ifdef FT_OPTION_AUTOFIT2
-  STYLE( ltn2_default, LTN2_DEFAULT,
+  STYLE( ltn2_dflt, LTN2_DFLT,
          "Latin 2 default style",
          AF_WRITING_SYSTEM_LATIN2,
          AF_SCRIPT_LATN,
@@ -77,7 +77,7 @@
          AF_COVERAGE_DEFAULT )
 #endif
 
-  STYLE( none_default, NONE_DEFAULT,
+  STYLE( none_dflt, NONE_DFLT,
          "no style",
          AF_WRITING_SYSTEM_DUMMY,
          AF_SCRIPT_NONE,