xcb\_open\_font(3) XCB Requests xcb\_open\_font(3)

# [NAME](#NAME)

xcb\_open\_font - opens a font

# [SYNOPSIS](#SYNOPSIS)

**#include &lt;xcb/xproto.h&gt;**

## [Request function](#Request_function)

xcb\_void\_cookie\_t **xcb\_open\_font**(xcb\_connection\_t \**conn*, xcb\_font\_t *fid*, uint16\_t *name\_len*, const char \**name*);

# [REQUEST ARGUMENTS](#REQUEST_ARGUMENTS)

[*conn*](#conn)

The XCB connection to X11.

[*fid*](#fid)

The ID with which you will refer to the font, created by *xcb\_generate\_id*.

[*name\_len*](#name_len)

Length (in bytes) of *name*.

[*name*](#name)

A pattern describing an X core font.

# [DESCRIPTION](#DESCRIPTION)

Opens any X core font matching the given *name* (for example "-misc-fixed-\*").

Note that X core fonts are deprecated (but still supported) in favor of client-side rendering using Xft.

# [RETURN VALUE](#RETURN_VALUE)

Returns an *xcb\_void\_cookie\_t*. Errors (if any) have to be handled in the event loop.

If you want to handle errors directly with *xcb\_request\_check* instead, use *xcb\_open\_font\_checked*. See [**xcb-requests(3)**](/man/os/libxcb/xcb-requests.3) for details.

# [ERRORS](#ERRORS)

[*xcb\_name\_error\_t*](#xcb_name_error_t)

No font matches the given *name*.

# [SEE ALSO](#SEE_ALSO)

[**xcb-requests**(3)](/man/os/libxcb/xcb-requests.3), [**xcb\_generate\_id**(3)](/man/os/libxcb/xcb_generate_id.3)

# [AUTHOR](#AUTHOR)

Generated from xproto.xml. Contact xcb@lists.freedesktop.org for corrections and improvements.

libxcb 1.17.0 X Version 11

---

Document: xcb_open_font(3) from libxcb 1.17.0-r16 (Chainguard OS)
Source: https://gitlab.freedesktop.org/xorg/lib/libxcb.git
