set_font_name


Description:

public bool set_font_name (string fontname)

Sets the currently-selected font.

Note:

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

Parameters:

this

a FontSelection

fontname

a font name like “Helvetica 12” or “Times Bold 18”

Returns:

true if the font could be set successfully; false if no such font exists or if the this doesn’t belong to a particular screen yet.




2022 vala-language.org