vg4->font->loadtext()
Load text from a file.
SYNTAX
struct VG_Image *
vg4->font->loadtext(const char *filename,
const char *dparam,
struct VG_Hash *hvar,
struct VG_Hash **htags)
FUNCTION PARAMETERS
filename | Text file |
dparam | Default parameters for text (header), or NULL E.g.: "[bgcolor=0x444444 maxwidth=80%]" |
hvar | Hash with variables, or NULL hash-format: - key: variable name - value: variable value |
htags | For returning position of tagged boxes and sub-tags, or NULL hash-format: - key: box-tag value or sub-tag value - value: position as rectangle (struct VG_Rect) |
RETURN VALUE
Returns the file's text as image
or NULL = Error
DESCRIPTION
Load text from a file.
For the format of the text, see vg4->font->totext().
SEE ALSO