提交 cf7a6e52 编写于 作者: B Behdad Esfahbod

[hdmx] Move DeviceRecord to toplevel again

More readable.
上级 96d7805a
......@@ -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
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册