[HarfBuzz] harfbuzz: Branch 'master' - 3 commits
Behdad Esfahbod
behdad at kemper.freedesktop.org
Thu Oct 4 14:24:42 UTC 2018
TODO | 10 +---------
src/hb-ot-shape.cc | 4 ++++
test/shaping/run-tests.py | 2 +-
3 files changed, 6 insertions(+), 10 deletions(-)
New commits:
commit 0abce58139bb58b8b97171db6387d2ac7eebdee0
Author: Behdad Esfahbod <behdad at behdad.org>
Date: Thu Oct 4 16:23:42 2018 +0200
[test] Choose 'ot' shaper specifically
Now that we added morx support, our OS X bot is running them through CoreText
and failing (with a DoS / infinite loop no less!). Always run tests through
our own shaper.
diff --git a/test/shaping/run-tests.py b/test/shaping/run-tests.py
index 5592aea5..18b2118d 100755
--- a/test/shaping/run-tests.py
+++ b/test/shaping/run-tests.py
@@ -46,7 +46,7 @@ for filename in args:
cwd = os.path.dirname(filename)
fontfile = os.path.normpath (os.path.join (cwd, fontfile))
- extra_options = []
+ extra_options = ["--shaper=ot"]
glyphs_expected = glyphs_expected.strip()
if glyphs_expected != '*':
extra_options.append("--verify")
commit c93d379bf2414eb6ee6d38fb9753ddf818a777ea
Author: Behdad Esfahbod <behdad at behdad.org>
Date: Thu Oct 4 13:28:13 2018 +0200
[TODO] Clean up
diff --git a/TODO b/TODO
index 6dac0be5..d2c5812a 100644
--- a/TODO
+++ b/TODO
@@ -1,9 +1,3 @@
-General fixes:
-=============
-
-- Implement 'rand' feature.
-
-
API issues:
===========
@@ -19,12 +13,10 @@ API additions
- Add hb-cairo glue
-- Add sanitize API (and a cached version, that saves result on blob user-data)
+- Add sanitize API.
- BCP 47 language handling / API (language_matches?)
-- Add hb_font_create_unscaled()?
-
- Add query / enumeration API for aalt-like features?
- Add segmentation API
commit a01194aaf4c15160330b4042066263b2c963b658
Author: Behdad Esfahbod <behdad at behdad.org>
Date: Thu Oct 4 13:00:37 2018 +0200
Enable two OpenType features, 'Harf' and 'Buzz'
One early, before script-specific features, one late, after. Allows font
developers to detect us and behave differently if needed.
diff --git a/src/hb-ot-shape.cc b/src/hb-ot-shape.cc
index 9e87b300..7d22720e 100644
--- a/src/hb-ot-shape.cc
+++ b/src/hb-ot-shape.cc
@@ -132,9 +132,13 @@ hb_ot_shape_collect_features (hb_ot_shape_planner_t *planner,
/* Random! */
map->enable_feature (HB_TAG ('r','a','n','d'), F_RANDOM, HB_OT_MAP_MAX_VALUE);
+ map->enable_feature (HB_TAG('H','a','r','f'));
+
if (planner->shaper->collect_features)
planner->shaper->collect_features (planner);
+ map->enable_feature (HB_TAG('B','u','z','z'));
+
for (unsigned int i = 0; i < ARRAY_LENGTH (common_features); i++)
map->add_feature (common_features[i]);
More information about the HarfBuzz
mailing list