Go to the first, previous, next, last section, table of contents.


]text-extents

Function: ]text-extents { [font text] -> W a d L R A dir nil }
file: 10-C-utils.t
package: muf
status: alpha

The ]texit-extents function computes and returns size information on the given text when rendered in the given font by querying the X server.

The font argument must satisfy font?. The text argument must satisfy string?.

The return values are:

W
Width -- total width in pixels.
a
Ascent -- vertical ascent of given string.
d
Descent -- vertical descent of given string.
L
Left bearing of leftmost character.
R
Right bearing of rightmost character.
A
Vertical ascent of given font.
dir
Font direction -- :left-to-right or :right-to-left.
nil
Currently always nil.


Go to the first, previous, next, last section, table of contents.