mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-21 06:51:01 +01:00
[HB] Simplify version check in GSUB/GPOS
This commit is contained in:
1 parent
212aba6189
commit
5876bf1b73
2 files changed
+8
-2
No files matched your search
@@ -1313,7 +1313,10 @@ struct GPOS : GSUBGPOS
|
||||
{
|
||||
static const hb_tag_t Tag = HB_TAG ('G','P','O','S');
|
||||
|
||||
STATIC_DEFINE_GET_FOR_DATA_CHECK_MAJOR_VERSION (GPOS, 1);
|
||||
static inline const GPOS& get_for_data (const char *data)
|
||||
{
|
||||
return (const GPOS&) GSUBGPOS::get_for_data (data);
|
||||
}
|
||||
|
||||
inline const PosLookup& get_lookup (unsigned int i) const
|
||||
{
|
||||
|
||||
@@ -730,7 +730,10 @@ struct GSUB : GSUBGPOS
|
||||
{
|
||||
static const hb_tag_t Tag = HB_TAG ('G','S','U','B');
|
||||
|
||||
STATIC_DEFINE_GET_FOR_DATA_CHECK_MAJOR_VERSION (GSUB, 1);
|
||||
static inline const GSUB& get_for_data (const char *data)
|
||||
{
|
||||
return (const GSUB&) GSUBGPOS::get_for_data (data);
|
||||
}
|
||||
|
||||
inline const SubstLookup& get_lookup (unsigned int i) const
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user