Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add "add_link()" with bias arg - take 2 #2235

Merged
merged 1 commit into from
Mar 8, 2020
Merged

Conversation

blueshade7
Copy link
Contributor

@blueshade7 blueshade7 commented Mar 7, 2020

On top of PR#2232 for fixes #2227 , removed “base” arg to add_link() when it is actually current->head from cmap, gdef, gpos, gsub, cbdt, sbix subsetters.

Two places where non-head base is used, AnchorMatrix::serialize() and MarkArray::serialize() in hb-ot-layout-gpos-table.hh, convert base pointer to bias by calling to_bias(), then calls add_link() which takes bias replacing base.

add_link() taking base is removed.

@ebraminio
Copy link
Collaborator

Please rebase the change, it looks also nice and understandable as well :)

@blueshade7
Copy link
Contributor Author

branch rebased

@ebraminio ebraminio merged commit 188a0a4 into master Mar 8, 2020
@ebraminio ebraminio deleted the add-link-with-bias2 branch March 8, 2020 19:29
@ebraminio
Copy link
Collaborator

Thank you very much :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

revisit hb_serialize_context_t::add_link() base arg
2 participants