x11rb::protocol::xproto

Function list_fonts_with_info

Source
pub fn list_fonts_with_info<'c, 'input, Conn>(
    conn: &'c Conn,
    max_names: u16,
    pattern: &'input [u8],
) -> Result<ListFontsWithInfoCookie<'c, Conn>, ConnectionError>
where Conn: RequestConnection + ?Sized,
Expand description

get matching font names and information.

Gets a list of available font names which match the given pattern.

§Fields

  • pattern_len - The length (in bytes) of pattern.
  • 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.

  • max_names - The maximum number of fonts to be returned.