<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>130840</bug_id>
          
          <creation_ts>2014-03-27 08:37:49 -0700</creation_ts>
          <short_desc>Add Support for Glyph-level mirroring</short_desc>
          <delta_ts>2016-07-13 22:06:43 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Text</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>123018</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Frédéric Wang Nélar">fred.wang</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>cfleizach</cc>
    
    <cc>mmaxfield</cc>
    
    <cc>mrobinson</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>994925</commentid>
    <comment_count>0</comment_count>
      <attachid>227948</attachid>
    <who name="Frédéric Wang Nélar">fred.wang</who>
    <bug_when>2014-03-27 08:37:49 -0700</bug_when>
    <thetext>Created attachment 227948
testcase

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

http://www.microsoft.com/typography/OTSPEC/TTOCHAP1.htm#ltrrtl

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

In Blink &amp; 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 &apos;rtlm&apos; 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.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>227948</attachid>
            <date>2014-03-27 08:37:49 -0700</date>
            <delta_ts>2014-03-27 08:37:49 -0700</delta_ts>
            <desc>testcase</desc>
            <filename>mirroring.html</filename>
            <type>text/html</type>
            <size>278</size>
            <attacher name="Frédéric Wang Nélar">fred.wang</attacher>
            
              <data encoding="base64">PCFkb2N0eXBlIGh0bWw+CjxodG1sPgogIDxoZWFkPgogICAgPHRpdGxlPm1pcnJvcmluZzwvdGl0
bGU+CiAgICA8bWV0YSBjaGFyc2V0PSJ1dGYtOCIvPgogIDwvaGVhZD4KICA8Ym9keT4KCiAgICA8
cCBzdHlsZT0iZm9udC1mYW1pbHk6IFhJVFMgTWF0aDsgZm9udC1zaXplOiAzZW07IC1tb3otZm9u
dC1mZWF0dXJlLXNldHRpbmdzOiAncnRsbSc7IC13ZWJraXQtZm9udC1mZWF0dXJlLXNldHRpbmdz
OiAncnRsbSciIGRpcj0icnRsIj5bJlN1bTs8L3A+CgogIDwvYm9keT4KPC9odG1sPgo=
</data>

          </attachment>
      

    </bug>

</bugzilla>