xosd_set_font — Change the font used by the XOSD window
#include <xosd.h>
int xosd_set_font( | xosd * | osd, |
const char * | font) ; |
xosd_set_font changes the font used to display the text shown in the XOSD window. The font is specified using an X Logical Font Descriptor (XLFD); the easiest way to create an XLFD is to use a program such as xfontsel(1). By default the "fixed" font is used, which is normally too small to see clearly.
The XOSD window to change.
The font used by the text.
On success, a zero is returned. On error, -1 is returned and xosd_error is set to indicate the reason for the error.
A string describing the error, if one occurred.
The XOSD library was originally written by André Renaud, and is currently maintained by Tim Wright. This document was written by Michael JasonSmith.
There are no known bugs with xosd_set_font. Bug reports can be sent to <xosd@ignavus.net>.
xosd_create(3xosd), xfontsel(1)