1 #ifndef OT_LAYOUT_GPOS_ANCHORFORMAT1_HH
2 #define OT_LAYOUT_GPOS_ANCHORFORMAT1_HH
11 HBUINT16 format; /* Format identifier--format = 1 */
12 FWORD xCoordinate; /* Horizontal value--in design units */
13 FWORD yCoordinate; /* Vertical value--in design units */
15 DEFINE_SIZE_STATIC (6);
17 bool sanitize (hb_sanitize_context_t *c) const
19 TRACE_SANITIZE (this);
20 return_trace (c->check_struct (this));
23 void get_anchor (hb_ot_apply_context_t *c, hb_codepoint_t glyph_id HB_UNUSED,
24 float *x, float *y) const
26 hb_font_t *font = c->font;
27 *x = font->em_fscale_x (xCoordinate);
28 *y = font->em_fscale_y (yCoordinate);
31 AnchorFormat1* copy (hb_serialize_context_t *c) const
33 TRACE_SERIALIZE (this);
34 AnchorFormat1* out = c->embed<AnchorFormat1> (this);
35 if (!out) return_trace (out);
46 #endif // OT_LAYOUT_GPOS_ANCHORFORMAT1_HH