[Fontconfig-bugs] [Bug 100935] New: Provide means to store the font returned

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu May 4 18:56:52 UTC 2017


https://bugs.freedesktop.org/show_bug.cgi?id=100935

            Bug ID: 100935
           Summary: Provide means to store the font returned
           Product: fontconfig
           Version: unspecified
          Hardware: Other
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: medium
         Component: fc-match
          Assignee: fontconfig-bugs at lists.freedesktop.org
          Reporter: wlt-ml at o-sinc.com
        QA Contact: freedesktop at behdad.org

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!

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/fontconfig-bugs/attachments/20170504/ff899408/attachment.html>


More information about the Fontconfig-bugs mailing list