Debian Codegraph @

texk/web2c/mfluadir/otfcc/lib/table/otl/subtables/gpos-common.h

raw
1 #ifndef CARYLL_TABLE_OTL_GPOS_COMMON_H
2 #define CARYLL_TABLE_OTL_GPOS_COMMON_H
3
4 #include "common.h"
5
6 // anchors
7 otl_Anchor otl_anchor_absent(void);
8 otl_Anchor otl_read_anchor(font_file_pointer data, uint32_t tableLength, uint32_t offset);
9 json_value *otl_dump_anchor(otl_Anchor a);
10 otl_Anchor otl_parse_anchor(json_value *v);
11 bk_Block *bkFromAnchor(otl_Anchor a);
12
13 // mark arrays
14 typedef struct {
15 sds className;
16 glyphclass_t classID;
17 UT_hash_handle hh;
18 } otl_ClassnameHash;
19
20 void otl_readMarkArray(otl_MarkArray *array, otl_Coverage *cov, font_file_pointer data,
21 uint32_t tableLength, uint32_t offset);
22 void otl_parseMarkArray(json_value *_marks, otl_MarkArray *array, otl_ClassnameHash **h,
23 const otfcc_Options *options);
24
25 // position values
26 extern const uint8_t FORMAT_DX;
27 extern const uint8_t FORMAT_DY;
28 extern const uint8_t FORMAT_DWIDTH;
29 extern const uint8_t FORMAT_DHEIGHT;
30 extern const uint8_t bits_in[0x100];
31
32 uint8_t position_format_length(uint16_t format);
33 otl_PositionValue position_zero(void);
34 otl_PositionValue read_gpos_value(font_file_pointer data, uint32_t tableLength, uint32_t offset,
35 uint16_t format);
36 uint8_t required_position_format(otl_PositionValue v);
37 void write_gpos_value(caryll_Buffer *buf, otl_PositionValue v, uint16_t format);
38 bk_Block *bk_gpos_value(otl_PositionValue v, uint16_t format);
39
40 json_value *gpos_dump_value(otl_PositionValue value);
41 otl_PositionValue gpos_parse_value(json_value *pos);
42
43 #endif