SkOTTable_maxp_CFF.h 743 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * Copyright 2012 Google Inc.
  3. *
  4. * Use of this source code is governed by a BSD-style license that can be
  5. * found in the LICENSE file.
  6. */
  7. #ifndef SkOTTable_maxp_CFF_DEFINED
  8. #define SkOTTable_maxp_CFF_DEFINED
  9. #include "src/core/SkEndian.h"
  10. #include "src/sfnt/SkOTTableTypes.h"
  11. #pragma pack(push, 1)
  12. struct SkOTTableMaximumProfile_CFF {
  13. SK_OT_Fixed version;
  14. static const SK_OT_Fixed VERSION = SkTEndian_SwapBE32(0x00005000);
  15. SK_OT_USHORT numGlyphs;
  16. };
  17. #pragma pack(pop)
  18. #include <stddef.h>
  19. static_assert(offsetof(SkOTTableMaximumProfile_CFF, numGlyphs) == 4, "SkOTTableMaximumProfile_CFF_numGlyphs_not_at_4");
  20. static_assert(sizeof(SkOTTableMaximumProfile_CFF) == 6, "sizeof_SkOTTableMaximumProfile_CFF_not_6");
  21. #endif