1xcb_list_fonts(3) XCB Requests xcb_list_fonts(3)
2
3
4
6 xcb_list_fonts - get matching font names
7
9 #include <xcb/xproto.h>
10
11 Request function
12 xcb_list_fonts_cookie_t xcb_list_fonts(xcb_connection_t *conn,
13 uint16_t max_names, uint16_t pattern_len, const char *pattern);
14
15 Reply datastructure
16 typedef struct xcb_list_fonts_reply_t {
17 uint8_t response_type;
18 uint8_t pad0;
19 uint16_t sequence;
20 uint32_t length;
21 uint16_t names_len;
22 uint8_t pad1[22];
23 } xcb_list_fonts_reply_t;
24
25 Reply function
26 xcb_list_fonts_reply_t *xcb_list_fonts_reply(xcb_connection_t *conn,
27 xcb_list_fonts_cookie_t cookie, xcb_generic_error_t **e);
28
29 Reply accessors
30 int xcb_list_fonts_names_length(const xcb_list_fonts_reply_t *reply);
31
32 xcb_str_iterator_t xcb_list_fonts_names_iterator(const
33 xcb_list_fonts_reply_t *reply);
34
36 conn The XCB connection to X11.
37
38 max_names The maximum number of fonts to be returned.
39
40 pattern_len
41 The length (in bytes) of pattern.
42
43 pattern A font pattern, for example "-misc-fixed-*".
44
45 The asterisk (*) is a wildcard for any number of characters.
46 The question mark (?) is a wildcard for a single character.
47 Use of uppercase or lowercase does not matter.
48
50 response_type
51 The type of this reply, in this case XCB_LIST_FONTS. This
52 field is also present in the xcb_generic_reply_t and can be
53 used to tell replies apart from each other.
54
55 sequence The sequence number of the last request processed by the X11
56 server.
57
58 length The length of the reply, in words (a word is 4 bytes).
59
60 names_len The number of font names.
61
63 Gets a list of available font names which match the given pattern.
64
66 Returns an xcb_list_fonts_cookie_t. Errors have to be handled when
67 calling the reply function xcb_list_fonts_reply.
68
69 If you want to handle errors in the event loop instead, use
70 xcb_list_fonts_unchecked. See xcb-requests(3) for details.
71
73 This request does never generate any errors.
74
76 xcb-requests(3)
77
79 Generated from xproto.xml. Contact xcb@lists.freedesktop.org for cor‐
80 rections and improvements.
81
82
83
84X Version 11 libxcb 1.12 xcb_list_fonts(3)