[morx/kerx] Rename types
This commit is contained in:
parent
c808e444da
commit
241ba7da51
|
@ -546,7 +546,7 @@ struct ClassTable
|
||||||
DEFINE_SIZE_ARRAY (4, classArray);
|
DEFINE_SIZE_ARRAY (4, classArray);
|
||||||
};
|
};
|
||||||
|
|
||||||
struct MortTypes
|
struct ObsoleteTypes
|
||||||
{
|
{
|
||||||
static const bool extended = false;
|
static const bool extended = false;
|
||||||
typedef HBUINT16 HBUINT;
|
typedef HBUINT16 HBUINT;
|
||||||
|
@ -573,7 +573,7 @@ struct MortTypes
|
||||||
return offsetToIndex (2 * offset, base, array);
|
return offsetToIndex (2 * offset, base, array);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
struct MorxTypes
|
struct ExtendedTypes
|
||||||
{
|
{
|
||||||
static const bool extended = true;
|
static const bool extended = true;
|
||||||
typedef HBUINT32 HBUINT;
|
typedef HBUINT32 HBUINT;
|
||||||
|
|
|
@ -476,6 +476,8 @@ struct KerxSubTableFormat2
|
||||||
template <typename KernSubTableHeader>
|
template <typename KernSubTableHeader>
|
||||||
struct KerxSubTableFormat4
|
struct KerxSubTableFormat4
|
||||||
{
|
{
|
||||||
|
typedef ExtendedTypes Types;
|
||||||
|
|
||||||
struct EntryData
|
struct EntryData
|
||||||
{
|
{
|
||||||
HBUINT16 ankrActionIndex;/* Either 0xFFFF (for no action) or the index of
|
HBUINT16 ankrActionIndex;/* Either 0xFFFF (for no action) or the index of
|
||||||
|
@ -512,12 +514,12 @@ struct KerxSubTableFormat4
|
||||||
mark_set (false),
|
mark_set (false),
|
||||||
mark (0) {}
|
mark (0) {}
|
||||||
|
|
||||||
inline bool is_actionable (StateTableDriver<MorxTypes, EntryData> *driver HB_UNUSED,
|
inline bool is_actionable (StateTableDriver<Types, EntryData> *driver HB_UNUSED,
|
||||||
const Entry<EntryData> *entry)
|
const Entry<EntryData> *entry)
|
||||||
{
|
{
|
||||||
return entry->data.ankrActionIndex != 0xFFFF;
|
return entry->data.ankrActionIndex != 0xFFFF;
|
||||||
}
|
}
|
||||||
inline bool transition (StateTableDriver<MorxTypes, EntryData> *driver,
|
inline bool transition (StateTableDriver<Types, EntryData> *driver,
|
||||||
const Entry<EntryData> *entry)
|
const Entry<EntryData> *entry)
|
||||||
{
|
{
|
||||||
hb_buffer_t *buffer = driver->buffer;
|
hb_buffer_t *buffer = driver->buffer;
|
||||||
|
@ -619,7 +621,7 @@ struct KerxSubTableFormat4
|
||||||
|
|
||||||
driver_context_t dc (this, c);
|
driver_context_t dc (this, c);
|
||||||
|
|
||||||
StateTableDriver<MorxTypes, EntryData> driver (machine, c->buffer, c->font->face);
|
StateTableDriver<Types, EntryData> driver (machine, c->buffer, c->font->face);
|
||||||
driver.drive (&dc);
|
driver.drive (&dc);
|
||||||
|
|
||||||
return_trace (true);
|
return_trace (true);
|
||||||
|
@ -635,8 +637,7 @@ struct KerxSubTableFormat4
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
KernSubTableHeader header;
|
KernSubTableHeader header;
|
||||||
StateTable<MorxTypes, EntryData>
|
StateTable<Types, EntryData> machine;
|
||||||
machine;
|
|
||||||
HBUINT32 flags;
|
HBUINT32 flags;
|
||||||
public:
|
public:
|
||||||
DEFINE_SIZE_STATIC (KernSubTableHeader::static_size + 20);
|
DEFINE_SIZE_STATIC (KernSubTableHeader::static_size + 20);
|
||||||
|
@ -756,7 +757,7 @@ struct KerxSubTableFormat6
|
||||||
|
|
||||||
struct KerxSubTableHeader
|
struct KerxSubTableHeader
|
||||||
{
|
{
|
||||||
typedef MorxTypes Types;
|
typedef ExtendedTypes Types;
|
||||||
|
|
||||||
unsigned int tuple_count (void) const { return tupleCount; }
|
unsigned int tuple_count (void) const { return tupleCount; }
|
||||||
|
|
||||||
|
|
|
@ -1166,11 +1166,11 @@ struct mortmorx
|
||||||
DEFINE_SIZE_MIN (8);
|
DEFINE_SIZE_MIN (8);
|
||||||
};
|
};
|
||||||
|
|
||||||
struct morx : mortmorx<MorxTypes>
|
struct morx : mortmorx<ExtendedTypes>
|
||||||
{
|
{
|
||||||
static const hb_tag_t tableTag = HB_AAT_TAG_morx;
|
static const hb_tag_t tableTag = HB_AAT_TAG_morx;
|
||||||
};
|
};
|
||||||
struct mort : mortmorx<MortTypes>
|
struct mort : mortmorx<ObsoleteTypes>
|
||||||
{
|
{
|
||||||
static const hb_tag_t tableTag = HB_AAT_TAG_mort;
|
static const hb_tag_t tableTag = HB_AAT_TAG_mort;
|
||||||
};
|
};
|
||||||
|
|
|
@ -316,7 +316,7 @@ struct KernOT : KernTable<KernOT>
|
||||||
|
|
||||||
struct SubTableHeader
|
struct SubTableHeader
|
||||||
{
|
{
|
||||||
typedef AAT::MortTypes Types;
|
typedef AAT::ObsoleteTypes Types;
|
||||||
|
|
||||||
unsigned int tuple_count (void) const { return 0; }
|
unsigned int tuple_count (void) const { return 0; }
|
||||||
|
|
||||||
|
@ -363,7 +363,7 @@ struct KernAAT : KernTable<KernAAT>
|
||||||
|
|
||||||
struct SubTableHeader
|
struct SubTableHeader
|
||||||
{
|
{
|
||||||
typedef AAT::MortTypes Types;
|
typedef AAT::ObsoleteTypes Types;
|
||||||
|
|
||||||
unsigned int tuple_count (void) const { return 0; }
|
unsigned int tuple_count (void) const { return 0; }
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue