pub fn list_fonts<'c, 'input, Conn>(
conn: &'c Conn,
max_names: u16,
pattern: &'input [u8],
) -> Result<Cookie<'c, Conn, ListFontsReply>, ConnectionError>where
Conn: RequestConnection + ?Sized,
Expand description
get matching font names.
Gets a list of available font names which match the given pattern
.
§Fields
pattern_len
- The length (in bytes) ofpattern
.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.