<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - OpenType tags wrongly exported on xhtml or EPUB"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=118417">118417</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>OpenType tags wrongly exported on xhtml or EPUB
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>6.0.5.2 release
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>UNCONFIRMED
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>filters and storage
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>libreoffice-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>rgb.mldc@gmail.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="http://bugs.documentfoundation.org/attachment.cgi?id=143168" name="attach_143168" title="Test files. Original ODT, plus exported EPUB and xhtml and "fixed" xhtml">attachment 143168</a> <a href="http://bugs.documentfoundation.org/attachment.cgi?id=143168&action=edit" title="Test files. Original ODT, plus exported EPUB and xhtml and "fixed" xhtml">[details]</a></span>
Test files. Original ODT, plus exported EPUB and xhtml and "fixed" xhtml

Let's suppose I build a document using Libertinus Serif as main font and that
some portion of the text have an OpenType tag like "smcp" (small caps) applied.
When exporting the document to xhtml or EPUB the corresponding css style gets
as font name

font-family:Libertinus Serif:smcp;

which of course is not interpreted by the target program. I do not know that
much of css, but I think the font name should translate as an style with
something like

font-family:Libertinus Serif; font-feature-settings:"smcp" 1; 

In fact, if I manually "fix" the xhtml file by changing the line

.T1 { font-family:Libertinus Serif:smcp; }

into 

.T1 { font-family:Libertinus Serif; font-feature-settings:"smcp" 1; }

the small caps text works without problems on my browser.

This problem is particularly important when fonts are embedded on the document
and the target renderer does not recognize the badly formatted font family,
giving a replacement font instead. 

The attachment contains:

- original odt file
- exported EPUB file
- exported xhtml file
- "fixed" xhtml file

Everything tested on LibO 6.0.5.2</pre>
        </div>
      </p>


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

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