gfx/skia/trunk/src/sfnt/SkOTTable_maxp_CFF.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/gfx/skia/trunk/src/sfnt/SkOTTable_maxp_CFF.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,30 @@
     1.4 +/*
     1.5 + * Copyright 2012 Google Inc.
     1.6 + *
     1.7 + * Use of this source code is governed by a BSD-style license that can be
     1.8 + * found in the LICENSE file.
     1.9 + */
    1.10 +
    1.11 +#ifndef SkOTTable_maxp_CFF_DEFINED
    1.12 +#define SkOTTable_maxp_CFF_DEFINED
    1.13 +
    1.14 +#include "SkEndian.h"
    1.15 +#include "SkOTTableTypes.h"
    1.16 +
    1.17 +#pragma pack(push, 1)
    1.18 +
    1.19 +struct SkOTTableMaximumProfile_CFF {
    1.20 +    SK_OT_Fixed version;
    1.21 +    static const SK_OT_Fixed VERSION = SkTEndian_SwapBE32(0x00005000);
    1.22 +
    1.23 +    SK_OT_USHORT numGlyphs;
    1.24 +};
    1.25 +
    1.26 +#pragma pack(pop)
    1.27 +
    1.28 +
    1.29 +#include <stddef.h>
    1.30 +SK_COMPILE_ASSERT(offsetof(SkOTTableMaximumProfile_CFF, numGlyphs) == 4, SkOTTableHead_glyphDataFormat_not_at_2);
    1.31 +SK_COMPILE_ASSERT(sizeof(SkOTTableMaximumProfile_CFF) == 6, sizeof_SkOTTableHead_not_4);
    1.32 +
    1.33 +#endif

mercurial