[HarfBuzz] harfbuzz: Branch 'master' - 2 commits
Behdad Esfahbod
behdad at kemper.freedesktop.org
Thu Nov 1 02:06:35 UTC 2018
src/hb-aat-layout.cc | 1 +
src/hb-aat-map.cc | 8 ++++++++
2 files changed, 9 insertions(+)
New commits:
commit 52a00cd87f63c8ab32413a1a9ce792a3e2ec84e2
Author: Behdad Esfahbod <behdad at behdad.org>
Date: Wed Oct 31 19:05:53 2018 -0700
[aat] Implement 'aalt' mapping
Fixes https://github.com/harfbuzz/harfbuzz/issues/1160
diff --git a/src/hb-aat-map.cc b/src/hb-aat-map.cc
index f2736bfd..1ce1b12b 100644
--- a/src/hb-aat-map.cc
+++ b/src/hb-aat-map.cc
@@ -34,6 +34,14 @@
void hb_aat_map_builder_t::add_feature (hb_tag_t tag,
unsigned int value)
{
+ if (tag == HB_TAG ('a','a','l','t'))
+ {
+ feature_info_t *info = features.push();
+ info->type = 17/*kCharacterAlternativesType*/;
+ info->setting = value;
+ return;
+ }
+
const hb_aat_feature_mapping_t *mapping = hb_aat_layout_find_feature_mapping (tag);
if (!mapping) return;
commit 6e3ea269fa1fe0a3de7a8a13c6e853c91231808e
Author: Behdad Esfahbod <behdad at behdad.org>
Date: Wed Oct 31 19:00:11 2018 -0700
[aat] Add 'afrc' feature mapping
https://github.com/harfbuzz/harfbuzz/issues/1342#issuecomment-434829028
diff --git a/src/hb-aat-layout.cc b/src/hb-aat-layout.cc
index b6bdb0be..d917c29c 100644
--- a/src/hb-aat-layout.cc
+++ b/src/hb-aat-layout.cc
@@ -41,6 +41,7 @@
* when moving to this file. */
static const hb_aat_feature_mapping_t feature_mappings[] =
{
+ {HB_TAG ('a','f','r','c'), 11/*kFractionsType*/, 1/*kVerticalFractionsSelector*/, 0/*kNoFractionsSelector*/},
{HB_TAG ('c','2','p','c'), 38/*kUpperCaseType*/, 2/*kUpperCasePetiteCapsSelector*/, 0/*kDefaultUpperCaseSelector*/},
{HB_TAG ('c','2','s','c'), 38/*kUpperCaseType*/, 1/*kUpperCaseSmallCapsSelector*/, 0/*kDefaultUpperCaseSelector*/},
{HB_TAG ('c','a','l','t'), 36/*kContextualAlternatesType*/, 0/*kContextualAlternatesOnSelector*/, 1/*kContextualAlternatesOffSelector*/},
More information about the HarfBuzz
mailing list