STRINGSIZE(2)STRINGSIZE(2)
NAME
stringsize, stringwidth, stringnwidth, runestringsize, runestringwidth, runestringnwidth – graphical size of strings
SYNOPSIS
#include <u.h> #include <libc.h> #include <draw.h>
Point stringsize(Font *f, char *s)
int stringwidth(Font *f, char *s)
int stringnwidth(Font *f, char *s, int n)
Point runestringsize(Font *f, Rune *s)
int runestringwidth(Font *f, Rune *s)
int runestringnwidth(Font *f, Rune *s, int n)
DESCRIPTION
These routines compute the geometrical extent of character strings when drawn on the display. The most straightforward,
The routines beginning with
FILES
SOURCE
SEE ALSO
DIAGNOSTICS
Because strings are loaded dynamically, these routines may generate I/O to the server and produce calls to the graphics error function.