XFontSetExtents(3)
π NAME π
okay so bestie, welcome to XFontSetExtents(3) from the XLIB FUNCTIONS section β this page is literally about the XFontSetExtents structure, and it's giving extremely specific rectangle energy β¨
XFontSetExtents β the XFontSetExtents structure. no cap, that's the whole name vibe π«Ά
π§ STRUCTURES π§
so the XFontSetExtents structure contains this exact little icon:
typedef struct {
XRectangle max_ink_extent; /* over all drawable characters */
XRectangle max_logical_extent; /* over all drawable characters */
} XFontSetExtents;
the XRectangle structures used to return font set metrics are the usual Xlib screen-oriented rectangles, bestie: x and y give the upper left corner, and width and height are always positive π
max_ink_extentβ this member gives the maximum extent, over all drawable characters, of the rectangles that bound the character glyph image drawn in the foreground color, relative to a constant origin. for the detailed semantics, seeXmbTextExtentsandXwcTextExtentsπmax_logical_extentβ this member gives the maximum extent, over all drawable characters, of the rectangles that specify minimum spacing to other graphical features, relative to a constant origin. other graphical features drawn by the client β for example, a border surrounding the text β should not intersect this rectangle. themax_logical_extentmember should be used to compute minimum interline spacing and the minimum area that must be allowed in a text field to draw a given number of arbitrary characters π
β οΈ caveat time, bestie: due to context-dependent rendering, appending a given character to a string may change the string's extent by an amount other than that character's individual extent. literally not me making the rules, that's just the tea π
π SEE ALSO π
XCreateFontSet(3)XExtentsOfFontSet(3)XFontsOfFontSet(3)Xlib - C Language X Interface
catch u later bestie β this page is servin' X Version 11, libX11 1.8.14, XFontSetExtents(3) energy π
β¨
π¦ where this page comes from
- alpine 3.24: libx11-doc 1.8.14-r0 Β· X11
- arch rolling: libx11 1.8.14-1 Β· MIT AND X11
- nixos 26.05: libx11 1.8.14
- nixpkgs unstable: libx11 1.8.14
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms