|
|
|
@ -7,19 +7,20 @@ namespace OT { |
|
|
|
|
namespace Layout { |
|
|
|
|
namespace GSUB_impl { |
|
|
|
|
|
|
|
|
|
struct SingleSubstFormat2 |
|
|
|
|
template <typename Types> |
|
|
|
|
struct SingleSubstFormat2_4 |
|
|
|
|
{ |
|
|
|
|
protected: |
|
|
|
|
HBUINT16 format; /* Format identifier--format = 2 */ |
|
|
|
|
Offset16To<Coverage> |
|
|
|
|
typename Types::template OffsetTo<Coverage> |
|
|
|
|
coverage; /* Offset to Coverage table--from
|
|
|
|
|
* beginning of Substitution table */ |
|
|
|
|
Array16Of<HBGlyphID16> |
|
|
|
|
Array16Of<typename Types::HBGlyphID> |
|
|
|
|
substitute; /* Array of substitute
|
|
|
|
|
* GlyphIDs--ordered by Coverage Index */ |
|
|
|
|
|
|
|
|
|
public: |
|
|
|
|
DEFINE_SIZE_ARRAY (6, substitute); |
|
|
|
|
DEFINE_SIZE_ARRAY (4 + Types::size, substitute); |
|
|
|
|
|
|
|
|
|
bool sanitize (hb_sanitize_context_t *c) const |
|
|
|
|
{ |
|
|
|
|