(x-make-font-bold-italic): New function.
authorKenichi Handa <handa@m17n.org>
Mon, 12 May 1997 05:26:35 +0000 (05:26 +0000)
committerKenichi Handa <handa@m17n.org>
Mon, 12 May 1997 05:26:35 +0000 (05:26 +0000)
lisp/faces.el

index 9c12fe3..30ce140 100644 (file)
@@ -823,6 +823,12 @@ If that can't be done, return nil."
   "Given an X font specification, make a non-italic version of it.
 If that can't be done, return nil."
   (x-frob-font-slant font "r"))
+
+(defun x-make-font-bold-italic (font)
+  "Given an X font specification, make a bold and italic version of it.
+If that can't be done, return nil."
+  (and (setq font (x-make-font-bold font))
+       (x-make-font-italic font)))
 \f
 ;;; non-X-specific interface