-
Notifications
You must be signed in to change notification settings - Fork 611
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
Conversation
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) { |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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.
This is mostly merged into my math branch now. |
It would be great to rebase d776da2 too later, using the new API for mathvariant. http://frederic-wang.fr/opentype-math-in-harfbuzz.html |
No description provided.