You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-12-01 16:38:31 +00:00
HarfBuzz: Update to version 4.0.0
This commit is contained in:
18
thirdparty/harfbuzz/src/hb-buffer.hh
vendored
18
thirdparty/harfbuzz/src/hb-buffer.hh
vendored
@@ -212,6 +212,20 @@ struct hb_buffer_t
|
||||
HB_INTERNAL void enter ();
|
||||
HB_INTERNAL void leave ();
|
||||
|
||||
#ifndef HB_NO_BUFFER_VERIFY
|
||||
HB_INTERNAL
|
||||
#endif
|
||||
bool verify (hb_buffer_t *text_buffer,
|
||||
hb_font_t *font,
|
||||
const hb_feature_t *features,
|
||||
unsigned int num_features,
|
||||
const char * const *shapers)
|
||||
#ifndef HB_NO_BUFFER_VERIFY
|
||||
;
|
||||
#else
|
||||
{ return true; }
|
||||
#endif
|
||||
|
||||
unsigned int backtrack_len () const { return have_output ? out_len : idx; }
|
||||
unsigned int lookahead_len () const { return len - idx; }
|
||||
uint8_t next_serial () { return ++serial ? serial : ++serial; }
|
||||
@@ -446,6 +460,8 @@ struct hb_buffer_t
|
||||
}
|
||||
void unsafe_to_concat (unsigned int start = 0, unsigned int end = -1)
|
||||
{
|
||||
if (likely ((flags & HB_BUFFER_FLAG_PRODUCE_UNSAFE_TO_CONCAT) == 0))
|
||||
return;
|
||||
_set_glyph_flags (HB_GLYPH_FLAG_UNSAFE_TO_CONCAT,
|
||||
start, end,
|
||||
true);
|
||||
@@ -458,6 +474,8 @@ struct hb_buffer_t
|
||||
}
|
||||
void unsafe_to_concat_from_outbuffer (unsigned int start = 0, unsigned int end = -1)
|
||||
{
|
||||
if (likely ((flags & HB_BUFFER_FLAG_PRODUCE_UNSAFE_TO_CONCAT) == 0))
|
||||
return;
|
||||
_set_glyph_flags (HB_GLYPH_FLAG_UNSAFE_TO_CONCAT,
|
||||
start, end,
|
||||
false, true);
|
||||
|
||||
Reference in New Issue
Block a user