December 21, 2024

Dynamic Windows Function [dw_pixmap_set_font]

Syntax

int dw_pixmap_set_font(HPIXMAP pixmap, char * fontname)

Parameters

HPIXMAP pixmap: Handle to a pixmap returned by dw_pixmap_new() or passed to the application via a callback.
char * fontname: Name and size of the font in the form "size.fontname"

Returns

int DW_ERROR_NONE on success and DW_ERROR_GENERAL on failure.

Description

Sets the font used by a specified pixmap.

Remarks

Normally the pixmap font is obtained from the associated window handle.
However this can be used to override that, or for pixmaps with no window.

This API was introduced in version 2.2.