SkOTTable_maxp.h 833 B

12345678910111213141516171819202122232425262728293031323334
  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_DEFINED
  8. #define SkOTTable_maxp_DEFINED
  9. #include "src/sfnt/SkOTTableTypes.h"
  10. #include "src/sfnt/SkOTTable_maxp_CFF.h"
  11. #include "src/sfnt/SkOTTable_maxp_TT.h"
  12. #pragma pack(push, 1)
  13. struct SkOTTableMaximumProfile {
  14. static const SK_OT_CHAR TAG0 = 'm';
  15. static const SK_OT_CHAR TAG1 = 'a';
  16. static const SK_OT_CHAR TAG2 = 'x';
  17. static const SK_OT_CHAR TAG3 = 'p';
  18. static const SK_OT_ULONG TAG = SkOTTableTAG<SkOTTableMaximumProfile>::value;
  19. union Version {
  20. SK_OT_Fixed version;
  21. struct CFF : SkOTTableMaximumProfile_CFF { } cff;
  22. struct TT : SkOTTableMaximumProfile_TT { } tt;
  23. } version;
  24. };
  25. #pragma pack(pop)
  26. #endif