<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Provide means to store the font returned"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=100935">100935</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Provide means to store the font returned
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>fontconfig
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

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

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

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

        <tr>
          <th>Component</th>
          <td>fc-match
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>wlt-ml@o-sinc.com
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>freedesktop@behdad.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Not sure if this is applicable, or something fontconfig developers are open to
inclusion. It would be really nice if fontconfig provided some means to store
the font returned via a fc-match. Please excuse if duplicate.

In working with EFL UI toolkit, the one used for Enlightenment desktop. I am
having great difficulties determining the default font used. The theme and
other files that have font names passed to fc-match are mostly generic; Sans vs
a specific Sans font. Once fontconfig matches and serves up the font. Seems
there is no way to ask fontconfig what was provided. The requesting application
must store this value returned via some means.

A global setting/storage would not make sense. But maybe something along the
lines of Application A requested font X, but was given font Y. That is saved,
so if anything asks what font application A is using; including application A
itself. Fontconfig replies with application A is using font Y.

It seems most environments, GTK, QT, and others are doing this in their own
way. Some are setting a specific font in config files, others in theme. Then
providing API means. However if that font is missing, that would have the same
issue. Font returned is other than Font requested.

This may be up to the application/UI toolkit to store the value returned from
fc-match. That is fair and maybe how it was designed and intended usage. At the
same time it may be beneficial to be able to re-query fontconfig to see what
font was served up.

Say I am working with Progam B, I want to know what font Program A is using. If
I can ask fontconfig which one was given to Program A, I can set that same for
program B. One usage outside of an environment storing such. This would also
allow a standard implementation of such and each would not be left up to its
own means to devise such.

Thank you for your consideration of this feature request!</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>