It's pretty easy to set the default font for a GtkTextView via gtk_widget_modify_font()
, but how to get which one is current? (I'm not using any tags in the widget.)
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
You can use gtk_widget_get_style()
to get the current GtkStyle, and then use gtk_style_get_font()
.