xcb_list_fonts(3)
๐ xcb_list_fonts
okay bestie, welcome to xcb_list_fonts from the XCB Requests girlies โจ this one lives in libxcb (the X protocol binding situation) and it's literally just: "hey server, gimme the font names that match this pattern" ๐
โจ NAME โจ
xcb_list_fonts โ get matching font names ๐ฆ
โจ SYNOPSIS โจ
#include <xcb/xproto.h>
๐ซถ Request function
xcb_list_fonts_cookie_t xcb_list_fonts(xcb_connection_t *conn,
uint16_t max_names, uint16_t pattern_len, const char *pattern);
๐ธ Reply datastructure
typedef struct xcb_list_fonts_reply_t {
uint8_t response_type;
uint8_t pad0;
uint16_t sequence;
uint32_t length;
uint16_t names_len;
uint8_t pad1[22];
} xcb_list_fonts_reply_t;
๐ Reply function
xcb_list_fonts_reply_t *xcb_list_fonts_reply(xcb_connection_t *conn,
xcb_list_fonts_cookie_t cookie, xcb_generic_error_t **e);
๐ Reply accessors
int xcb_list_fonts_names_length(const xcb_list_fonts_reply_t *reply);
xcb_str_iterator_t xcb_list_fonts_names_iterator(const
xcb_list_fonts_reply_t *reply);
๐ REQUEST ARGUMENTS ๐
connโ the XCB connection to X11, aka your link to the server, your main character hotline โ๏ธmax_namesโ the maximum number of fonts to be returned. like, a cap. a limit. a "no more than this many pls" ๐pattern_lenโ the length (in bytes) ofpattern๐patternโ a font pattern, for example"-misc-fixed-*"๐ธ- the asterisk (
*) is a wildcard for any number of characters ๐ซ - the question mark (
?) is a wildcard for a single character ๐ - use of uppercase or lowercase does not matter, so don't stress abt it bestie ๐
- the asterisk (
โญ REPLY FIELDS โญ
response_typeโ the type of this reply, in this caseXCB_LIST_FONTS. this field is also present in thexcb_generic_reply_tand can be used to tell replies apart from each other ๐ (iykyk)sequenceโ the sequence number of the last request processed by the X11 server ๐ขlengthโ the length of the reply, in words (a word is 4 bytes) ๐งฎnames_lenโ the number of font names ๐
๐ DESCRIPTION ๐
gets a list of available font names which match the given pattern. that's it, that's the whole vibe โจ
๐ฅ RETURN VALUE ๐ฅ
returns an xcb_list_fonts_cookie_t. errors have to be handled when calling the reply function xcb_list_fonts_reply ๐ซก
if you want to handle errors in the event loop instead, use xcb_list_fonts_unchecked. see xcb-requests(3) for details ๐
๐ ERRORS ๐
this request does never generate any errors. not me being shocked ๐ญ iconic behaviour honestly, zero drama, no notes ๐
๐ SEE ALSO ๐
xcb-requests(3)๐ฆ
๐ง AUTHOR ๐ง
generated from xproto.xml. contact xcb@lists.freedesktop.org for corrections and improvements ๐
okay that's the whole page bestie, you ate ๐
this was xcb_list_fonts(3), brought to you by X Version 11, libxcb 1.17.0 โ slay, go forth and list those fonts โจ๐
๐ฆ where this page comes from
- alpine 3.22: libxcb-doc 1.17.0-r0 ยท MIT
- alpine 3.23: libxcb-doc 1.17.0-r1 ยท MIT
- alpine 3.24: libxcb-doc 1.17.0-r2 ยท MIT
- arch rolling: libxcb 1.17.0-1 ยท X11
- centos-stream 10: libxcb-devel 1.17.0-3.el10 ยท X11
- debian trixie: libxcb-doc 1.17.0-2
- fedora 43: libxcb-devel 1.17.0-6.fc43 ยท X11
- fedora 43: libxcb-devel 1.17.0-6.fc43 ยท X11
- fedora 44: libxcb-devel 1.17.0-7.fc44 ยท X11
- fedora 44: libxcb-devel 1.17.0-7.fc44 ยท X11
- nixpkgs unstable: libxcb 1.17.0
- opensuse-leap 16.0: libxcb-devel-doc 1.17.0-160000.2.2 ยท MIT
- ubuntu questing: libxcb-doc 1.17.0-2build1
- ubuntu resolute: libxcb-doc 1.17.0-2ubuntu1
- ubuntu stonking: libxcb-doc 1.17.0-2ubuntu1
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms