After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 768527 - Request external API for pango_font_description_to_css()
Request external API for pango_font_description_to_css()
Status: RESOLVED WONTFIX
Product: gtk+
Classification: Platform
Component: .General
unspecified
Other All
: Normal enhancement
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2016-07-07 17:14 UTC by Brian Smith
Modified: 2016-07-14 16:13 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Brian Smith 2016-07-07 17:14:24 UTC
A very useful function for converting a pango font description to GTK CSS has been imported into gtk/gtkfontbutton.c recently, however this is not externally callable and has many external use cases.

Can this function be made a public API so applications can call it directly?
Comment 1 Matthias Clasen 2016-07-13 02:56:32 UTC
I'm not convinced that we want to make this public; it is a pretty straightforward utility function, and it is not at all clear that there is a single 'canonical' output for such a helper. Should it include {} or let you add to a larger rule ? should it include the * selector or not ? etc

In short: just copy the function if you need it
Comment 2 Brian Smith 2016-07-14 16:13:44 UTC
Well it is under the LGPL and I need it under BSD to include it in my project... I asked the original author and he told me to ask you to make it a public API, which is a comment that was included in the original commit message.