michael@0: /* michael@0: * Copyright 2012 Google Inc. michael@0: * michael@0: * Use of this source code is governed by a BSD-style license that can be michael@0: * found in the LICENSE file. michael@0: */ michael@0: michael@0: #ifndef SkOTTable_maxp_CFF_DEFINED michael@0: #define SkOTTable_maxp_CFF_DEFINED michael@0: michael@0: #include "SkEndian.h" michael@0: #include "SkOTTableTypes.h" michael@0: michael@0: #pragma pack(push, 1) michael@0: michael@0: struct SkOTTableMaximumProfile_CFF { michael@0: SK_OT_Fixed version; michael@0: static const SK_OT_Fixed VERSION = SkTEndian_SwapBE32(0x00005000); michael@0: michael@0: SK_OT_USHORT numGlyphs; michael@0: }; michael@0: michael@0: #pragma pack(pop) michael@0: michael@0: michael@0: #include michael@0: SK_COMPILE_ASSERT(offsetof(SkOTTableMaximumProfile_CFF, numGlyphs) == 4, SkOTTableHead_glyphDataFormat_not_at_2); michael@0: SK_COMPILE_ASSERT(sizeof(SkOTTableMaximumProfile_CFF) == 6, sizeof_SkOTTableHead_not_4); michael@0: michael@0: #endif