SkOTTable_loca.h 714 B

12345678910111213141516171819202122232425262728293031
  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_loca_DEFINED
  8. #define SkOTTable_loca_DEFINED
  9. #include "src/core/SkEndian.h"
  10. #include "src/sfnt/SkOTTableTypes.h"
  11. #pragma pack(push, 1)
  12. struct SkOTTableIndexToLocation {
  13. static const SK_OT_CHAR TAG0 = 'l';
  14. static const SK_OT_CHAR TAG1 = 'o';
  15. static const SK_OT_CHAR TAG2 = 'c';
  16. static const SK_OT_CHAR TAG3 = 'a';
  17. static const SK_OT_ULONG TAG = SkOTTableTAG<SkOTTableIndexToLocation>::value;
  18. union Offsets {
  19. SK_OT_USHORT shortOffset[1];
  20. SK_OT_ULONG longOffset[1];
  21. } offsets;
  22. };
  23. #pragma pack(pop)
  24. #endif