gfx/skia/trunk/src/sfnt/SkOTTable_post.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_post.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,52 @@
     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_post_DEFINED
    1.12 +#define SkOTTable_post_DEFINED
    1.13 +
    1.14 +#include "SkEndian.h"
    1.15 +#include "SkOTTableTypes.h"
    1.16 +#include "SkTypedEnum.h"
    1.17 +
    1.18 +#pragma pack(push, 1)
    1.19 +
    1.20 +struct SkOTTablePostScript {
    1.21 +    static const SK_OT_CHAR TAG0 = 'p';
    1.22 +    static const SK_OT_CHAR TAG1 = 'o';
    1.23 +    static const SK_OT_CHAR TAG2 = 's';
    1.24 +    static const SK_OT_CHAR TAG3 = 't';
    1.25 +    static const SK_OT_ULONG TAG = SkOTTableTAG<SkOTTablePostScript>::value;
    1.26 +
    1.27 +    struct Format {
    1.28 +        SK_TYPED_ENUM(Value, SK_OT_Fixed,
    1.29 +            ((version1, SkTEndian_SwapBE32(0x00010000)))
    1.30 +            ((version2, SkTEndian_SwapBE32(0x00020000)))
    1.31 +            ((version2_5, SkTEndian_SwapBE32(0x00025000)))
    1.32 +            ((version3, SkTEndian_SwapBE32(0x00030000)))
    1.33 +            ((version4, SkTEndian_SwapBE32(0x00040000)))
    1.34 +            SK_SEQ_END,
    1.35 +        SK_SEQ_END)
    1.36 +        SK_OT_Fixed value;
    1.37 +    } format;
    1.38 +    SK_OT_Fixed italicAngle;
    1.39 +    SK_OT_FWORD underlinePosition;
    1.40 +    SK_OT_FWORD underlineThickness;
    1.41 +    SK_OT_ULONG isFixedPitch;
    1.42 +    SK_OT_ULONG minMemType42;
    1.43 +    SK_OT_ULONG maxMemType42;
    1.44 +    SK_OT_ULONG minMemType1;
    1.45 +    SK_OT_ULONG maxMemType1;
    1.46 +};
    1.47 +
    1.48 +#pragma pack(pop)
    1.49 +
    1.50 +
    1.51 +#include <stddef.h>
    1.52 +SK_COMPILE_ASSERT(offsetof(SkOTTablePostScript, maxMemType1) == 28, SkOTTablePostScript_maxMemType1_not_at_28);
    1.53 +SK_COMPILE_ASSERT(sizeof(SkOTTablePostScript) == 32, sizeof_SkOTTablePostScript_not_32);
    1.54 +
    1.55 +#endif

mercurial