[subset] Formatting and comments in hdmx.
This commit is contained in:
parent
6b372f439b
commit
c02532a3d2
|
@ -31,10 +31,12 @@
|
||||||
|
|
||||||
namespace OT {
|
namespace OT {
|
||||||
|
|
||||||
|
/*
|
||||||
|
* hdmx - Horizontal Device Metric
|
||||||
|
*/
|
||||||
|
|
||||||
#define HB_OT_TAG_hdmx HB_TAG('h','d','m','x')
|
#define HB_OT_TAG_hdmx HB_TAG('h','d','m','x')
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
struct hdmx
|
struct hdmx
|
||||||
{
|
{
|
||||||
static const hb_tag_t tableTag = HB_OT_TAG_hdmx;
|
static const hb_tag_t tableTag = HB_OT_TAG_hdmx;
|
||||||
|
@ -91,10 +93,15 @@ struct hdmx
|
||||||
return_trace (true);
|
return_trace (true);
|
||||||
}
|
}
|
||||||
|
|
||||||
HBUINT8 pixel_size;
|
inline bool sanitize (hb_sanitize_context_t *c) const
|
||||||
HBUINT8 max_width;
|
{
|
||||||
HBUINT8 widths[VAR];
|
TRACE_SANITIZE (this);
|
||||||
|
return_trace (likely (c->check_struct (this)));
|
||||||
|
}
|
||||||
|
|
||||||
|
HBUINT8 pixel_size; /* Pixel size for following widths (as ppem). */
|
||||||
|
HBUINT8 max_width; /* Maximum width. */
|
||||||
|
HBUINT8 widths[VAR]; /* Array of widths (numGlyphs is from the 'maxp' table). */
|
||||||
DEFINE_SIZE_MIN (2);
|
DEFINE_SIZE_MIN (2);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -171,14 +178,14 @@ struct hdmx
|
||||||
&& version == 0));
|
&& version == 0));
|
||||||
}
|
}
|
||||||
|
|
||||||
HBUINT16 version;
|
public:
|
||||||
HBINT16 num_records;
|
HBUINT16 version; /* Table version number (0) */
|
||||||
HBINT32 size_device_record;
|
HBINT16 num_records; /* Number of device records. */
|
||||||
|
HBINT32 size_device_record; /* Size of a device record, 32-bit aligned. */
|
||||||
DEFINE_SIZE_MIN (8);
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
DeviceRecord records[VAR];
|
DeviceRecord records[VAR]; /* Array of device records. */
|
||||||
|
public:
|
||||||
|
DEFINE_SIZE_MIN (8);
|
||||||
};
|
};
|
||||||
|
|
||||||
} /* namespace OT */
|
} /* namespace OT */
|
||||||
|
|
Loading…
Reference in New Issue