[subset] use glyphset_gsub instead of glyphset for GDEF

This commit is contained in:
Qunxin Liu 2021-11-02 15:02:36 -07:00 committed by Garret Rieger
parent e39647c0f1
commit 60e203644b
12 changed files with 16 additions and 2 deletions

View File

@ -84,7 +84,7 @@ struct AttachList
bool subset (hb_subset_context_t *c) const
{
TRACE_SUBSET (this);
const hb_set_t &glyphset = *c->plan->glyphset ();
const hb_set_t &glyphset = *c->plan->glyphset_gsub ();
const hb_map_t &glyph_map = *c->plan->glyph_map;
auto *out = c->serializer->start_embed (*this);
@ -371,7 +371,7 @@ struct LigCaretList
bool subset (hb_subset_context_t *c) const
{
TRACE_SUBSET (this);
const hb_set_t &glyphset = *c->plan->glyphset ();
const hb_set_t &glyphset = *c->plan->glyphset_gsub ();
const hb_map_t &glyph_map = *c->plan->glyph_map;
auto *out = c->serializer->start_embed (*this);

View File

@ -30,6 +30,7 @@ EXTRA_DIST += \
expected/layout.gsub8 \
expected/layout.khmer \
expected/layout.gdef \
expected/layout.gdef.glyphset \
expected/layout.context \
expected/layout.gdef-varstore \
expected/layout.gdef-attachlist \

View File

@ -16,6 +16,7 @@ TESTS = \
tests/layout.gdef-attachlist.tests \
tests/layout.gdef-varstore.tests \
tests/layout.gdef.tests \
tests/layout.gdef.glyphset.tests \
tests/layout.gpos.tests \
tests/layout.gpos2.tests \
tests/layout.gpos3.tests \

Binary file not shown.

View File

@ -0,0 +1,11 @@
FONTS:
IndicTestHowrah-Regular.ttf
PROFILES:
default.txt
drop-hints.txt
retain-gids.txt
SUBSETS:
U+9dd
*

View File

@ -21,6 +21,7 @@ tests = [
'layout.gsub6',
'layout.gsub8',
'layout.gdef',
'layout.gdef.glyphset',
'layout.khmer',
'layout.context',
'layout.gdef-varstore',