1cb93a386Sopenharmony_ci/* 2cb93a386Sopenharmony_ci * Copyright 2012 Google Inc. 3cb93a386Sopenharmony_ci * 4cb93a386Sopenharmony_ci * Use of this source code is governed by a BSD-style license that can be 5cb93a386Sopenharmony_ci * found in the LICENSE file. 6cb93a386Sopenharmony_ci */ 7cb93a386Sopenharmony_ci 8cb93a386Sopenharmony_ci#ifndef SkOTTable_maxp_DEFINED 9cb93a386Sopenharmony_ci#define SkOTTable_maxp_DEFINED 10cb93a386Sopenharmony_ci 11cb93a386Sopenharmony_ci#include "src/sfnt/SkOTTableTypes.h" 12cb93a386Sopenharmony_ci#include "src/sfnt/SkOTTable_maxp_CFF.h" 13cb93a386Sopenharmony_ci#include "src/sfnt/SkOTTable_maxp_TT.h" 14cb93a386Sopenharmony_ci 15cb93a386Sopenharmony_ci#pragma pack(push, 1) 16cb93a386Sopenharmony_ci 17cb93a386Sopenharmony_cistruct SkOTTableMaximumProfile { 18cb93a386Sopenharmony_ci static const SK_OT_CHAR TAG0 = 'm'; 19cb93a386Sopenharmony_ci static const SK_OT_CHAR TAG1 = 'a'; 20cb93a386Sopenharmony_ci static const SK_OT_CHAR TAG2 = 'x'; 21cb93a386Sopenharmony_ci static const SK_OT_CHAR TAG3 = 'p'; 22cb93a386Sopenharmony_ci static const SK_OT_ULONG TAG = SkOTTableTAG<SkOTTableMaximumProfile>::value; 23cb93a386Sopenharmony_ci 24cb93a386Sopenharmony_ci union Version { 25cb93a386Sopenharmony_ci SK_OT_Fixed version; 26cb93a386Sopenharmony_ci 27cb93a386Sopenharmony_ci struct CFF : SkOTTableMaximumProfile_CFF { } cff; 28cb93a386Sopenharmony_ci struct TT : SkOTTableMaximumProfile_TT { } tt; 29cb93a386Sopenharmony_ci } version; 30cb93a386Sopenharmony_ci}; 31cb93a386Sopenharmony_ci 32cb93a386Sopenharmony_ci#pragma pack(pop) 33cb93a386Sopenharmony_ci 34cb93a386Sopenharmony_ci#endif 35