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, see XmbTextExtents and XwcTextExtents πŸ‘€
  • 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. the max_logical_extent member 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 🌈


catch u later bestie β€” this page is servin' X Version 11, libX11 1.8.14, XFontSetExtents(3) energy πŸ’…βœ¨

πŸ“¦ where this page comes from