pub fn open_font<'c, 'input, Conn>(
conn: &'c Conn,
fid: Font,
name: &'input [u8]
) -> Result<VoidCookie<'c, Conn>, ConnectionError>where
Conn: RequestConnection + ?Sized,
Expand description
opens a font.
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.
Fields
fid
- The ID with which you will refer to the font, created byxcb_generate_id
.name_len
- Length (in bytes) ofname
.name
- A pattern describing an X core font.
Errors
Name
- No font matches the givenname
.
See
xcb_generate_id
: function