/src/harfbuzz/src/OT/glyf/loca.hh
Line | Count | Source |
1 | | #ifndef OT_GLYF_LOCA_HH |
2 | | #define OT_GLYF_LOCA_HH |
3 | | |
4 | | |
5 | | #include "../../hb-open-type.hh" |
6 | | |
7 | | |
8 | | namespace OT { |
9 | | |
10 | | |
11 | | /* |
12 | | * loca -- Index to Location |
13 | | * https://docs.microsoft.com/en-us/typography/opentype/spec/loca |
14 | | */ |
15 | | #define HB_OT_TAG_loca HB_TAG('l','o','c','a') |
16 | | #define HB_OT_TAG_LOCA HB_TAG('L','O','C','A') |
17 | | |
18 | | struct loca |
19 | | { |
20 | | friend struct glyf; |
21 | | friend struct glyf_accelerator_t; |
22 | | |
23 | | static constexpr hb_tag_t tableTag = HB_OT_TAG_loca; |
24 | | |
25 | | bool sanitize (hb_sanitize_context_t *c HB_UNUSED) const |
26 | 0 | { |
27 | 0 | TRACE_SANITIZE (this); |
28 | 0 | return_trace (true); |
29 | 0 | } |
30 | | |
31 | | protected: |
32 | | UnsizedArrayOf<HBUINT8> |
33 | | dataZ; /* Location data. */ |
34 | | public: |
35 | | DEFINE_SIZE_MIN (0); /* In reality, this is UNBOUNDED() type; but since we always |
36 | | * check the size externally, allow Null() object of it by |
37 | | * defining it _MIN instead. */ |
38 | | }; |
39 | | |
40 | | |
41 | | } /* namespace OT */ |
42 | | |
43 | | |
44 | | #endif /* OT_GLYF_LOCA_HH */ |