Is there any place where I can get a list of all the fonts on any system with GTK? I need to set a sensible default font for some plots, and definitely the sensible default font should be present
EDIT: If there are no specific fonts guaranteed to exist, is this an easy way to get just some sensible default scalable non-serif fonts? I do not care about the details. Edit # 2: If GTK can not be guaranteed anything, then someone can give me a good platform-specific default scalable sensor-syf font that is guaranteed to be present on any site. And * proper installation of NIX / X11?
No fonts are available on any system GTK, because GTK is a cross-platform toolkit And does not install any of its own fonts.
Depending on how you are providing your plots (Cairo), any text should already be drawn in the default font. Edit : It seems like you're using gdk_draw_layout () to draw your text, it takes a PangoLayout argument if you If you obtain gtk_widget_create_pango_layout () using PangoLayout , then it must have a sensible default font set already. You can locate that font by using pango_layout_get_context () by receiving PangoContext and then by typing pango_context_get_font_description () .
If you are also using GNOME, you can see the value of / desktop / gnome / interface / font-name , / desktop / gnome / interface / monospace You can check -font-name with GConf, and / desktop / gnome / interface / document-font-name key.
Comments
Post a Comment