Name

xosd_set_font — Change the font used by the XOSD window

Synopsis

#include <xosd.h>
int xosd_set_font(xosd * osd,
 const char * font);

Description

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.

Arguments

osd

The XOSD window to change.

font

The font used by the text.

Return Value

On success, a zero is returned. On error, -1 is returned and xosd_error is set to indicate the reason for the error.

Environment

char *xosd_error

A string describing the error, if one occurred.

Authors

The XOSD library was originally written by André Renaud, and is currently maintained by Tim Wright. This document was written by Michael JasonSmith.

See Also

xosd_create(3xosd), xfontsel(1)