mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-26 17:31:08 +01:00
fix Head with link.bias
This commit is contained in:
1 parent
e65bff0943
commit
6120f50c8f
1 file changed
+1
-1
+1
-1
@@ -324,7 +324,7 @@ struct hb_serialize_context_t
|
||||
if (unlikely (!child)) { err_other_error(); return; }
|
||||
unsigned offset;
|
||||
switch ((whence_t)link.whence) {
|
||||
case Head: offset = child->head - parent->head; break;
|
||||
case Head: offset = (child->head - parent->head) - link.bias; break;
|
||||
case Tail: offset = child->head - parent->tail; break;
|
||||
case Absolute: offset = (head - start) + (child->head - tail); break;
|
||||
default: assert (0);
|
||||
|
||||
Reference in new issue
Block a user