<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:vstuart.foote@utsa.edu" title="V Stuart Foote <vstuart.foote@utsa.edu>"> <span class="fn">V Stuart Foote</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - Paragraph or Character attributes applied to the U+0020 "Space" NPC change text layout (Harfbuzz)"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=135126">bug 135126</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Blocks</td>
           <td>
                
           </td>
           <td>103729, 71732
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">CC</td>
           <td>
                
           </td>
           <td>dr.khaled.hosny@gmail.com
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Summary</td>
           <td>Changing font color changes text layout (Harfbuzz)
           </td>
           <td>Paragraph or Character attributes applied to the U+0020 "Space" NPC change text layout (Harfbuzz)
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - Paragraph or Character attributes applied to the U+0020 "Space" NPC change text layout (Harfbuzz)"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=135126#c10">Comment # 10</a>
              on <a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - Paragraph or Character attributes applied to the U+0020 "Space" NPC change text layout (Harfbuzz)"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=135126">bug 135126</a>
              from <span class="vcard"><a class="email" href="mailto:vstuart.foote@utsa.edu" title="V Stuart Foote <vstuart.foote@utsa.edu>"> <span class="fn">V Stuart Foote</span></a>
</span></b>
        <pre>Confirmed. Applying a paragraph attribute to a single space glyph (U+0020)
results in a change in its width on document canvas relative to the paragraph
style.  But so will applying a character style to the glyph.

That is, open the 'Formatting Styles' toolbar, and apply the 'Emphasis' or
'Strong' character style against the selected space.

So, it is not an issue of Direct Formatting over riding Paragraph style.

I am not certain, but believe it is an issue in the HarfBuzz handling of
unattributed space glyphs vs. rendering with an applied attribute.

A space glyph  with VCLs artificial Strike-through or Underline has to be
rendered to canvas, likewise our artificial Bold or Italic--that size/width has
to be calculated against the font metrics. That's obvious, less so are
attributes like the color of a space glyph or applying a background color for
the space.

Look closely and you'll see both colors get the same calculated width as the
Strike-through or the Underline attribute applied to the glyph.

So, behavior is actually pretty consistent--DF of the space glyph can be
removed with an Undo or <Ctrl>+M, while applied Character style (E, S, Q) can
be removed by applying the default Character style (A).

Applying Paragraph/Character attributes to other NPC in string would probably
behave same.

But, I suspect that this can only be improved with a solution to <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Use floating point for glyph positioning in VCL"
   href="show_bug.cgi?id=103322">bug 103322</a> to
provide greater precision in composing the document canvas. And that this
ultimately is a duplicate of that issue.

@Khaled?</pre>
        </div>
      </p>

        <div id="referenced">
          <hr style="border: 1px dashed #969696">
          <b>Referenced Bugs:</b>
          <ul>
              <li>
                [<a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [META] Bugs related to text rendering, typography and font features in LO"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=71732">Bug 71732</a>] [META] Bugs related to text rendering, typography and font features in LO
              </li>
              <li>
                [<a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [META] HarfBuzz-based common text layout regressions"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=103729">Bug 103729</a>] [META] HarfBuzz-based common text layout regressions
              </li>
          </ul>
        </div>
        <br>

      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>