[Webkit-unassigned] [Bug 133569] The OpenType MATH table is not read on Mac

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Jun 7 07:57:12 PDT 2014


https://bugs.webkit.org/show_bug.cgi?id=133569





--- Comment #4 from Frédéric Wang (:fredw) <fred.wang at free.fr>  2014-06-07 07:57:35 PST ---
WebKit/Blink contains the following comment:

// OTTag is native because it's only compared against constants, so we don't
// do endian conversion here but make sure constants are in big-endian order.
// Note that multi-character literal is implementation-defined in C++0x.
typedef uint32_t Tag;
#define OT_MAKE_TAG(ch1, ch2, ch3, ch4) ((((uint32_t)(ch4)) << 24) | (((uint32_t)(ch3)) << 16) | (((uint32_t)(ch2)) << 8) | ((uint32_t)(ch1)))

Interestingly, Gecko does that in a different order:
#define TRUETYPE_TAG(a, b, c, d) ((a) << 24 | (b) << 16 | (c) << 8 | (d))
http://mxr.mozilla.org/mozilla-central/source/gfx/thebes/gfxFontUtils.h#323

Apple doc: https://developer.apple.com/library/ios/documentation/graphicsimaging/Reference/CGFont/Reference/reference.html#//apple_ref/c/func/CGFontCopyTableForTag

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list