[hdmx] Move DeviceRecord to toplevel again
More readable.
This commit is contained in:
parent
96d7805a92
commit
cf7a6e520e
@ -31,18 +31,15 @@
|
||||
|
||||
namespace OT {
|
||||
|
||||
|
||||
/*
|
||||
* hdmx - Horizontal Device Metric
|
||||
*/
|
||||
|
||||
#define HB_OT_TAG_hdmx HB_TAG('h','d','m','x')
|
||||
|
||||
struct hdmx
|
||||
struct DeviceRecord
|
||||
{
|
||||
static const hb_tag_t tableTag = HB_OT_TAG_hdmx;
|
||||
|
||||
struct DeviceRecord
|
||||
{
|
||||
struct SubsetView
|
||||
{
|
||||
const DeviceRecord *source_device_record;
|
||||
@ -96,15 +93,20 @@ struct hdmx
|
||||
inline bool sanitize (hb_sanitize_context_t *c, unsigned int size_device_record) const
|
||||
{
|
||||
TRACE_SANITIZE (this);
|
||||
return_trace (likely (c->check_struct (this)
|
||||
&& c->check_range (this, size_device_record)));
|
||||
return_trace (likely (c->check_struct (this) &&
|
||||
c->check_range (this, size_device_record)));
|
||||
}
|
||||
|
||||
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);
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
struct hdmx
|
||||
{
|
||||
static const hb_tag_t tableTag = HB_OT_TAG_hdmx;
|
||||
|
||||
inline unsigned int get_size (void) const
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user