[aat] Minor

This commit is contained in:
Behdad Esfahbod 2019-09-08 16:34:11 -04:00
parent a0695687eb
commit 170b5dd856
1 changed files with 5 additions and 9 deletions

View File

@ -1080,9 +1080,11 @@ struct Chain
* The 'mort'/'morx' Table * The 'mort'/'morx' Table
*/ */
template <typename Types> template <typename Types, hb_tag_t TAG>
struct mortmorx struct mortmorx
{ {
static constexpr hb_tag_t tableTag = TAG;
bool has_data () const { return version != 0; } bool has_data () const { return version != 0; }
void compile_flags (const hb_aat_map_builder_t *mapper, void compile_flags (const hb_aat_map_builder_t *mapper,
@ -1141,14 +1143,8 @@ struct mortmorx
DEFINE_SIZE_MIN (8); DEFINE_SIZE_MIN (8);
}; };
struct morx : mortmorx<ExtendedTypes> struct morx : mortmorx<ExtendedTypes, HB_AAT_TAG_morx> {};
{ struct mort : mortmorx<ObsoleteTypes, HB_AAT_TAG_mort> {};
static constexpr hb_tag_t tableTag = HB_AAT_TAG_morx;
};
struct mort : mortmorx<ObsoleteTypes>
{
static constexpr hb_tag_t tableTag = HB_AAT_TAG_mort;
};
} /* namespace AAT */ } /* namespace AAT */