Hello, my mistake, I want to easy generate CSS data from PangoFontDescription https://developer.gnome.org/pango/stable/pango-Fonts.html#PangoFontDescription
that i means generate string like: { font-family: Geneva CE; font-size: 12px; font-style: italic; font-weight: bold; font-variant: normal; } I really can't set font from css file, I'm using provider.load_from_data(css_string) now. I'm author of MindMapArchitect, so application for mind maps. Widgets have color and font from node. And each of this could be set by preferences (Color and Font widgets). Thank's for all. PS: IMHO that looks like, that is not adequate substitute for the function gtk_widget_override_font. Override color is much easier. V Sat, 19 Nov 2016 16:43:19 +0100 Martin Horauer <mhora...@gmail.com> napsáno: > Although no direct answer - look at the minimal example - C-File, > CSS File, Resource File, and the Makefile - and the comments therein. > > Hope this helps. > > Cheers, > Martin > > > On Fri, 2016-11-18 at 21:02 +0100, Ondrej Tuma wrote: > > Hi all, > > > > as gtk_widget_override_font is deprecated from gtk 3.16, i try to > > use GtkStyleProvider. But, when I sent style data with font variable > > definitioin, I got WARNING message: > > Using Pango syntax for the font: style property is > > deprecated; please use CSS syntax > > > > So question is, if gtk_widget_override_font is deprecated, ane font > > string is deprecated, is there some function, which can I use, to > > generate right CSS ? > > > > Or I must write own function to generate css style with right > > variables > > font-family, font-size, font-style etc... ? > > > > Thanks a lot -- Ondřej Tůma <mc...@zeropage.cz> www: http://ipv6.mcbig.cz jabber: mc...@jabber.cz twitter: mcbig_cz _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list