Provide means to store the font returned
Submitted by William L. Thomson Jr.
Assigned to fon..@..op.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!