<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Google-Font Sora Bold not supported for PDF export or Print"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=140710#c18">Comment # 18</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Google-Font Sora Bold not supported for PDF export or Print"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=140710">bug 140710</a>
              from <span class="vcard"><a class="email" href="mailto:liqsquid00@gmail.com" title="liqsquid <liqsquid00@gmail.com>"> <span class="fn">liqsquid</span></a>
</span></b>
        <pre>Hi!

I had this same problem when I tried to use the variable version of the Inter
font [1]. It displayed ok on writer, but as I saved a pdf version of the
document, the text lost its bold formatting.

This problem seems to be related to 'variable fonts' or OpenType CFF2 fonts as
in <a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - PDF export cannot embed OpenType CFF2 (Variable PostScript / .otf) fonts"
   href="show_bug.cgi?id=137301">bug 137301</a> [2]. I saw a related discussion in the harfbuzz git [3] and it
might have some helpful info. The Inter website has a test page for browsers
[4] and some useful information [1] about subsetting the variable font using
two other tools [5] e [6].

Maybe this is something it could be done: detect the variable font being used,
subset it, include the corresponding subset in the pdf file.


[1] Inter font family - <a href="https://rsms.me/inter/">https://rsms.me/inter/</a>

[2] - <a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - PDF export cannot embed OpenType CFF2 (Variable PostScript / .otf) fonts"
   href="show_bug.cgi?id=137301">https://bugs.documentfoundation.org/show_bug.cgi?id=137301</a>

[3] Shaping and instantiating variable fonts -
<a href="https://github.com/harfbuzz/harfbuzz/issues/2112">https://github.com/harfbuzz/harfbuzz/issues/2112</a>

[4] Inter variable font test - <a href="https://rsms.me/inter/var-test.html">https://rsms.me/inter/var-test.html</a>

[5] subset - fontTools Documentation -
<a href="https://fonttools.readthedocs.io/en/latest/subset/">https://fonttools.readthedocs.io/en/latest/subset/</a>

[6]  filamentgroup/glyphhanger - <a href="https://github.com/filamentgroup/glyphhanger">https://github.com/filamentgroup/glyphhanger</a></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>