Bug 130840 - Add Support for Glyph-level mirroring
Summary: Add Support for Glyph-level mirroring
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Text (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
Depends on:
Blocks: 123018
  Show dependency treegraph
Reported: 2014-03-27 08:37 PDT by Frédéric Wang (:fredw)
Modified: 2016-07-13 22:06 PDT (History)
3 users (show)

See Also:

testcase (278 bytes, text/html)
2014-03-27 08:37 PDT, Frédéric Wang (:fredw)
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Frédéric Wang (:fredw) 2014-03-27 08:37:49 PDT
Created attachment 227948 [details]

Currently, Font::glyphDataForCharacter accepts a mirror boolean to apply Character-level mirroring. However it does not allow to apply Glyph-level mirroring. See


This is needed for MathML operators such as integrals or sums, that don't have character-level mirroring defined in Unicode. 

In Blink & Gecko with the XITS fonts installed, the attached testcase shows mirroring of the bracket (character-level) and sum (glyph-level). The latter relies on the 'rtlm' feature of the XITS. Note that for MathML purpose, all what is needed is a way for Font::glyphDataForCharacter to use the rtlm substitution table, not to implement the font-feature-settings CSS property.