face-spec-choose

face-spec-choose is a compiled Lisp function in `faces.el'.

(face-spec-choose SPEC &optional FRAME NO-MATCH-RETVAL)

Return the proper attributes for FRAME, out of SPEC.

If no match is found or SPEC is nil, return nil, unless NO-MATCH-RETVAL
is given, in which case return its value instead.