Function: find-font

find-font is a function defined in font.c.

Signature

(find-font FONT-SPEC &optional FRAME)

Documentation

Return a font-entity matching with FONT-SPEC on the current frame.

Optional 2nd argument FRAME, if non-nil, specifies the target frame.

View in manual

Probably introduced at or before Emacs version 23.1.

Source Code

// Defined in /usr/src/emacs/src/font.c
{
  Lisp_Object val = Flist_fonts (font_spec, frame, make_fixnum (1), Qnil);

  if (CONSP (val))
    val = XCAR (val);
  return val;
}