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 8.0.0
This commit is contained in:
7
thirdparty/harfbuzz/src/hb-buffer.hh
vendored
7
thirdparty/harfbuzz/src/hb-buffer.hh
vendored
@@ -493,6 +493,13 @@ struct hb_buffer_t
|
||||
|
||||
HB_NODISCARD HB_INTERNAL bool enlarge (unsigned int size);
|
||||
|
||||
HB_NODISCARD bool resize (unsigned length)
|
||||
{
|
||||
assert (!have_output);
|
||||
if (unlikely (!ensure (length))) return false;
|
||||
len = length;
|
||||
return true;
|
||||
}
|
||||
HB_NODISCARD bool ensure (unsigned int size)
|
||||
{ return likely (!size || size < allocated) ? true : enlarge (size); }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user