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 support for the OpenType MATH table. #326

Closed
wants to merge 6 commits into from

Conversation

fred-wang
Copy link
Contributor

No description provided.

@fred-wang fred-wang changed the title Math 3 Add support for the OpenType MATH table. Sep 26, 2016
hb_ot_layout_t * layout = hb_ot_layout_from_face (face);

// If the MATH table is not loaded yet, do it now.
if (!layout->math_blob) {
Copy link
Member

@behdad behdad Sep 26, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not threadsafe. You need to use hb_atomic_ptr_get() and hb_atomic_ptr_cmpexch() instead.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, do the atomic check on layout->math, not layout->math_blob.

*/

HB_EXTERN hb_bool_t
hb_ot_layout_has_math_data (hb_face_t *face);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add two newlines after.

test_ot_layout_math_LDADD = $(LDADD)
test_ot_layout_math_CPPFLAGS = $(AM_CPPFLAGS)
test_ot_layout_math_CPPFLAGS += $(FREETYPE_CFLAGS)
test_ot_layout_math_LDADD += $(FREETYPE_LIBS)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Merge these four lines into two.

@behdad
Copy link
Member

behdad commented Sep 27, 2016

This is mostly merged into my math branch now.

@fred-wang
Copy link
Contributor Author

It would be great to rebase d776da2 too later, using the new API for mathvariant. http://frederic-wang.fr/opentype-math-in-harfbuzz.html

@fred-wang
Copy link
Contributor Author

@behdad behdad mentioned this pull request Sep 27, 2016
@behdad behdad closed this Sep 27, 2016
behdad added a commit that referenced this pull request Sep 27, 2016
Supercedes #326
Fixes #331
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.

None yet

2 participants