RGtk2 (version 2.20.31)

gtkFontSelectionSetFontName: gtkFontSelectionSetFontName

Description

Sets the currently-selected font.

Usage

gtkFontSelectionSetFontName(object, fontname)

Arguments

fontname
a font name like "Helvetica 12" or "Times Bold 18"

Value

TRUE if the font could be set successfully; FALSE if no such font exists or if the fontsel doesn't belong to a particular screen yet.

Details

Note that the fontsel needs to know the screen in which it will appear for this to work; this can be guaranteed by simply making sure that the fontsel is inserted in a toplevel window before you call this function.