comparison mupdf-source/thirdparty/harfbuzz/src/OT/Layout/GPOS/MarkBasePos.hh @ 2:b50eed0cc0ef upstream

ADD: MuPDF v1.26.7: the MuPDF source as downloaded by a default build of PyMuPDF 1.26.4. The directory name has changed: no version number in the expanded directory now.
author Franz Glasner <fzglas.hg@dom66.de>
date Mon, 15 Sep 2025 11:43:07 +0200
parents
children
comparison
equal deleted inserted replaced
1:1d09e1dec1d9 2:b50eed0cc0ef
1 #ifndef OT_LAYOUT_GPOS_MARKBASEPOS_HH
2 #define OT_LAYOUT_GPOS_MARKBASEPOS_HH
3
4 #include "MarkBasePosFormat1.hh"
5
6 namespace OT {
7 namespace Layout {
8 namespace GPOS_impl {
9
10 struct MarkBasePos
11 {
12 protected:
13 union {
14 HBUINT16 format; /* Format identifier */
15 MarkBasePosFormat1_2<SmallTypes> format1;
16 #ifndef HB_NO_BEYOND_64K
17 MarkBasePosFormat1_2<MediumTypes> format2;
18 #endif
19 } u;
20
21 public:
22 template <typename context_t, typename ...Ts>
23 typename context_t::return_t dispatch (context_t *c, Ts&&... ds) const
24 {
25 TRACE_DISPATCH (this, u.format);
26 if (unlikely (!c->may_dispatch (this, &u.format))) return_trace (c->no_dispatch_return_value ());
27 switch (u.format) {
28 case 1: return_trace (c->dispatch (u.format1, std::forward<Ts> (ds)...));
29 #ifndef HB_NO_BEYOND_64K
30 case 2: return_trace (c->dispatch (u.format2, std::forward<Ts> (ds)...));
31 #endif
32 default:return_trace (c->default_return_value ());
33 }
34 }
35 };
36
37 }
38 }
39 }
40
41 #endif /* OT_LAYOUT_GPOS_MARKBASEPOS_HH */