[layout] Minor, add using Lookup to GSUB/GPOS
This commit is contained in:
parent
d4ddb3acf8
commit
9fc9b1ece4
|
@ -19,6 +19,8 @@ namespace GSUB {
|
|||
|
||||
struct GSUB : GSUBGPOS
|
||||
{
|
||||
using Lookup = SubstLookup;
|
||||
|
||||
static constexpr hb_tag_t tableTag = HB_OT_TAG_GSUB;
|
||||
|
||||
const SubstLookup& get_lookup (unsigned int i) const
|
||||
|
|
|
@ -10,7 +10,7 @@ namespace GSUB {
|
|||
|
||||
struct SubstLookup : Lookup
|
||||
{
|
||||
typedef SubstLookupSubTable SubTable;
|
||||
using SubTable = SubstLookupSubTable;
|
||||
|
||||
bool sanitize (hb_sanitize_context_t *c) const
|
||||
{ return Lookup::sanitize<SubTable> (c); }
|
||||
|
|
|
@ -2882,7 +2882,7 @@ struct PosLookupSubTable
|
|||
|
||||
struct PosLookup : Lookup
|
||||
{
|
||||
typedef struct PosLookupSubTable SubTable;
|
||||
using SubTable = PosLookupSubTable;
|
||||
|
||||
const SubTable& get_subtable (unsigned int i) const
|
||||
{ return Lookup::get_subtable<SubTable> (i); }
|
||||
|
@ -2953,6 +2953,8 @@ struct GPOS : GSUBGPOS
|
|||
{
|
||||
static constexpr hb_tag_t tableTag = HB_OT_TAG_GPOS;
|
||||
|
||||
using Lookup = PosLookup;
|
||||
|
||||
const PosLookup& get_lookup (unsigned int i) const
|
||||
{ return static_cast<const PosLookup &> (GSUBGPOS::get_lookup (i)); }
|
||||
|
||||
|
|
Loading…
Reference in New Issue