* faces.el (x-resolve-font-name): Give correct error message
depending on whether or not FACE was non-nil.
This commit is contained in:
parent
d9d5950f41
commit
25c08a32ed
1 changed files with 3 additions and 3 deletions
|
@ -428,9 +428,9 @@ also the same size as FACE on FRAME."
|
|||
(let ((fonts (x-list-fonts pattern face frame)))
|
||||
(or fonts
|
||||
(if face
|
||||
(error "no fonts match `%S'." pattern)
|
||||
(error "no fonts matching pattern are the same size as `%s'."
|
||||
face)))
|
||||
(error "no fonts matching pattern are the same size as `%s'."
|
||||
face)
|
||||
(error "no fonts match `%S'." pattern)))
|
||||
(car fonts))
|
||||
(cdr (assq 'font (frame-parameters (selected-frame))))))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue