[gsubgpos] Don't set unnecessary funcs

This commit is contained in:
Behdad Esfahbod 2022-12-03 11:53:14 -07:00
parent 023f595dec
commit 2680be1f22
1 changed files with 8 additions and 8 deletions

View File

@ -2133,7 +2133,7 @@ struct ContextFormat1_4
void closure_lookups (hb_closure_lookups_context_t *c) const void closure_lookups (hb_closure_lookups_context_t *c) const
{ {
struct ContextClosureLookupContext lookup_context = { struct ContextClosureLookupContext lookup_context = {
{intersects_glyph, intersected_glyph}, {intersects_glyph, nullptr},
ContextFormat::SimpleContext, ContextFormat::SimpleContext,
nullptr nullptr
}; };
@ -2247,7 +2247,7 @@ struct ContextFormat2_5
hb_map_t cache; hb_map_t cache;
struct ContextClosureLookupContext lookup_context = { struct ContextClosureLookupContext lookup_context = {
{intersects_class, intersected_class_glyphs}, {intersects_class, nullptr},
ContextFormat::ClassBasedContext, ContextFormat::ClassBasedContext,
&class_def, &class_def,
&cache &cache
@ -2317,7 +2317,7 @@ struct ContextFormat2_5
hb_map_t cache; hb_map_t cache;
struct ContextClosureLookupContext lookup_context = { struct ContextClosureLookupContext lookup_context = {
{intersects_class, intersected_class_glyphs}, {intersects_class, nullptr},
ContextFormat::ClassBasedContext, ContextFormat::ClassBasedContext,
&class_def, &class_def,
&cache &cache
@ -2504,7 +2504,7 @@ struct ContextFormat3
return false; return false;
struct ContextClosureLookupContext lookup_context = { struct ContextClosureLookupContext lookup_context = {
{intersects_coverage, intersected_coverage_glyphs}, {intersects_coverage, nullptr},
ContextFormat::CoverageBasedContext, ContextFormat::CoverageBasedContext,
this this
}; };
@ -3205,7 +3205,7 @@ struct ChainContextFormat1_4
void closure_lookups (hb_closure_lookups_context_t *c) const void closure_lookups (hb_closure_lookups_context_t *c) const
{ {
struct ChainContextClosureLookupContext lookup_context = { struct ChainContextClosureLookupContext lookup_context = {
{intersects_glyph, intersected_glyph}, {intersects_glyph, nullptr},
ContextFormat::SimpleContext, ContextFormat::SimpleContext,
{nullptr, nullptr, nullptr} {nullptr, nullptr, nullptr}
}; };
@ -3319,7 +3319,7 @@ struct ChainContextFormat2_5
hb_map_t caches[3] = {}; hb_map_t caches[3] = {};
struct ChainContextClosureLookupContext lookup_context = { struct ChainContextClosureLookupContext lookup_context = {
{intersects_class, intersected_class_glyphs}, {intersects_class, nullptr},
ContextFormat::ClassBasedContext, ContextFormat::ClassBasedContext,
{&backtrack_class_def, {&backtrack_class_def,
&input_class_def, &input_class_def,
@ -3397,7 +3397,7 @@ struct ChainContextFormat2_5
hb_map_t caches[3] = {}; hb_map_t caches[3] = {};
struct ChainContextClosureLookupContext lookup_context = { struct ChainContextClosureLookupContext lookup_context = {
{intersects_class, intersected_class_glyphs}, {intersects_class, nullptr},
ContextFormat::ClassBasedContext, ContextFormat::ClassBasedContext,
{&backtrack_class_def, {&backtrack_class_def,
&input_class_def, &input_class_def,
@ -3632,7 +3632,7 @@ struct ChainContextFormat3
const auto &lookahead = StructAfter<decltype (lookaheadX)> (input); const auto &lookahead = StructAfter<decltype (lookaheadX)> (input);
struct ChainContextClosureLookupContext lookup_context = { struct ChainContextClosureLookupContext lookup_context = {
{intersects_coverage, intersected_coverage_glyphs}, {intersects_coverage, nullptr},
ContextFormat::CoverageBasedContext, ContextFormat::CoverageBasedContext,
{this, this, this} {this, this, this}
}; };