1XFontSetExtents(3) XLIB FUNCTIONS XFontSetExtents(3)
2
3
4
6 XFontSetExtents - XFontSetExtents structure
7
9 The XFontSetExtents structure contains:
10
11 typedef struct {
12 XRectangle max_ink_extent; /* over all drawable characters */
13 XRectangle max_logical_extent; /* over all drawable characters */
14 } XFontSetExtents;
15
16 The XRectangle structures used to return font set metrics are the usual
17 Xlib screen-oriented rectangles with x, y giving the upper left corner,
18 and width and height always positive.
19
20 The max_ink_extent member gives the maximum extent, over all drawable
21 characters, of the rectangles that bound the character glyph image
22 drawn in the foreground color, relative to a constant origin. See Xmb‐
23 TextExtents and XwcTextExtents for detailed semantics.
24
25 The max_logical_extent member gives the maximum extent, over all draw‐
26 able characters, of the rectangles that specify minimum spacing to
27 other graphical features, relative to a constant origin. Other graphi‐
28 cal features drawn by the client, for example, a border surrounding the
29 text, should not intersect this rectangle. The max_logical_extent mem‐
30 ber should be used to compute minimum interline spacing and the minimum
31 area that must be allowed in a text field to draw a given number of ar‐
32 bitrary characters.
33
34 Due to context-dependent rendering, appending a given character to a
35 string may change the string's extent by an amount other than that
36 character's individual extent.
37
39 XCreateFontSet(3), XExtentsOfFontSet(3), XFontsOfFontSet(3)
40 Xlib - C Language X Interface
41
42
43
44X Version 11 libX11 1.8.1 XFontSetExtents(3)