From 6120f50c8f52ff2e8e3c7d4f86f17fc259dcec50 Mon Sep 17 00:00:00 2001 From: ariza Date: Wed, 19 Feb 2020 13:55:39 -0800 Subject: [PATCH] fix Head with link.bias --- src/hb-serialize.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb-serialize.hh b/src/hb-serialize.hh index 5609b6369..21e8bcc23 100644 --- a/src/hb-serialize.hh +++ b/src/hb-serialize.hh @@ -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);