[subset] use glyphset_gsub instead of glyphset for GDEF

pull/3282/head
Qunxin Liu 3 years ago committed by Garret Rieger
parent e39647c0f1
commit 60e203644b
  1. 4
      src/hb-ot-layout-gdef-table.hh
  2. 1
      test/subset/data/Makefile.am
  3. 1
      test/subset/data/Makefile.sources
  4. BIN
      test/subset/data/expected/layout.gdef.glyphset/IndicTestHowrah-Regular.default.9dd.ttf
  5. BIN
      test/subset/data/expected/layout.gdef.glyphset/IndicTestHowrah-Regular.default.retain-all-codepoint.ttf
  6. BIN
      test/subset/data/expected/layout.gdef.glyphset/IndicTestHowrah-Regular.drop-hints.9dd.ttf
  7. BIN
      test/subset/data/expected/layout.gdef.glyphset/IndicTestHowrah-Regular.drop-hints.retain-all-codepoint.ttf
  8. BIN
      test/subset/data/expected/layout.gdef.glyphset/IndicTestHowrah-Regular.retain-gids.9dd.ttf
  9. BIN
      test/subset/data/expected/layout.gdef.glyphset/IndicTestHowrah-Regular.retain-gids.retain-all-codepoint.ttf
  10. BIN
      test/subset/data/fonts/IndicTestHowrah-Regular.ttf
  11. 11
      test/subset/data/tests/layout.gdef.glyphset.tests
  12. 1
      test/subset/meson.build

@ -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);

@ -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 \

@ -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 \

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

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

Loading…
Cancel
Save