aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/sfnt/SkOTTable_maxp.h
blob: d7feac6986bcf2feb4e277f8a493571518c4532c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*
 * Copyright 2012 Google Inc.
 *
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

#ifndef SkOTTable_maxp_DEFINED
#define SkOTTable_maxp_DEFINED

#include "SkOTTableTypes.h"
#include "SkOTTable_maxp_CFF.h"
#include "SkOTTable_maxp_TT.h"

#pragma pack(push, 1)

struct SkOTTableMaximumProfile {
    static const SK_OT_CHAR TAG0 = 'm';
    static const SK_OT_CHAR TAG1 = 'a';
    static const SK_OT_CHAR TAG2 = 'x';
    static const SK_OT_CHAR TAG3 = 'p';
    static const SK_OT_ULONG TAG = SkOTTableTAG<SkOTTableMaximumProfile>::value;

    union Version {
        SK_OT_Fixed version;

        struct CFF : SkOTTableMaximumProfile_CFF { } cff;
        struct TT : SkOTTableMaximumProfile_TT { } tt;
    } version;
};

#pragma pack(pop)

#endif