[HarfBuzz] harfbuzz: Branch 'master'

Behdad Esfahbod behdad at kemper.freedesktop.org
Thu Nov 1 01:52:36 UTC 2018


 src/hb-aat-layout-morx-table.hh |    8 ++++++++
 1 file changed, 8 insertions(+)

New commits:
commit 40b19fd46951e2f9b402e59e1fbbf06fde7ecd61
Author: Behdad Esfahbod <behdad at behdad.org>
Date:   Wed Oct 31 18:51:45 2018 -0700

    [aat] Fallback to old style "Letter Case" small caps
    
    Fixes https://github.com/harfbuzz/harfbuzz/issues/1342

diff --git a/src/hb-aat-layout-morx-table.hh b/src/hb-aat-layout-morx-table.hh
index ab867bba..d56af7bf 100644
--- a/src/hb-aat-layout-morx-table.hh
+++ b/src/hb-aat-layout-morx-table.hh
@@ -955,12 +955,20 @@ struct Chain
         const Feature &feature = featureZ[i];
         uint16_t type = feature.featureType;
 	uint16_t setting = feature.featureSetting;
+      retry:
 	const hb_aat_map_builder_t::feature_info_t *info = map->features.bsearch (type);
 	if (info && info->setting == setting)
 	{
 	  flags &= feature.disableFlags;
 	  flags |= feature.enableFlags;
 	}
+	else if (type == 3/*kLetterCaseType*/ && setting == 3/*kSmallCapsSelector*/)
+	{
+	  /* Deprecated. https://github.com/harfbuzz/harfbuzz/issues/1342 */
+	  type = 37/*kLowerCaseType*/;
+	  setting = 1/*kLowerCaseSmallCapsSelector*/;
+	  goto retry;
+	}
       }
     }
     return flags;


More information about the HarfBuzz mailing list