diff options
author | bungeman <bungeman@chromium.org> | 2018-02-01 13:31:25 -0500 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2018-02-09 15:39:45 -0600 |
commit | 671f0a7733a496eb46b08dc88c3c46b804cdd895 (patch) | |
tree | d351072563e6f3db99b346dc8c61a36518449bd3 /src | |
parent | 3346ba9cd5198d27c7416b8c71fecb6c8d3cb335 (diff) |
Documentation for HB_GLYPH_FLAG_UNSAFE_TO_BREAK.
HB_GLYPH_FLAG_UNSAFE_TO_BREAK means that the glyph with this flag is somehow affected by the previous logical glyph (the previous index in the buffer if ltr and the next index if the buffer is rtl). If these two glyphs are separated by a break (line or otherwise) then the underlying text should be re-shaped on both sides up to corresponding position in the text of some glyph not marked with this flag.
Diffstat (limited to 'src')
-rw-r--r-- | src/hb-buffer.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/hb-buffer.h b/src/hb-buffer.h index b2801ddf..9f86b494 100644 --- a/src/hb-buffer.h +++ b/src/hb-buffer.h @@ -71,9 +71,15 @@ typedef struct hb_glyph_info_t { hb_var_int_t var2; } hb_glyph_info_t; +/** + * hb_glyph_flags_t: + * @HB_GLYPH_FLAG_UNSAFE_TO_BREAK: If this glyph is split from the previous logical glyph + * then both sides should be re-shaped. + */ typedef enum { /*< flags >*/ HB_GLYPH_FLAG_UNSAFE_TO_BREAK = 0x00000001, + /*< private >*/ HB_GLYPH_FLAG_DEFINED = 0x00000001 /* OR of all defined flags */ } hb_glyph_flags_t; |