From 671f0a7733a496eb46b08dc88c3c46b804cdd895 Mon Sep 17 00:00:00 2001 From: bungeman Date: Thu, 1 Feb 2018 13:31:25 -0500 Subject: [PATCH] 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. --- src/hb-buffer.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/hb-buffer.h b/src/hb-buffer.h index b2801ddf5..9f86b4948 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;