Function x11rb::protocol::xproto::open_font

source ·
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 by xcb_generate_id.
  • name_len - Length (in bytes) of name.
  • name - A pattern describing an X core font.

Errors

  • Name - No font matches the given name.

See

  • xcb_generate_id: function