diff options
| -rw-r--r-- | lisp/textmodes/enriched.el | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lisp/textmodes/enriched.el b/lisp/textmodes/enriched.el index c44b69cdb73..e43370cdb56 100644 --- a/lisp/textmodes/enriched.el +++ b/lisp/textmodes/enriched.el | |||
| @@ -389,6 +389,8 @@ which can be the value of the `face' text property." | |||
| 389 | (apply 'append (mapcar 'enriched-face-ans face))) | 389 | (apply 'append (mapcar 'enriched-face-ans face))) |
| 390 | ((let* ((fg (face-attribute face :foreground)) | 390 | ((let* ((fg (face-attribute face :foreground)) |
| 391 | (bg (face-attribute face :background)) | 391 | (bg (face-attribute face :background)) |
| 392 | (weight (face-attribute face :weight)) | ||
| 393 | (slant (face-attribute face :slant)) | ||
| 392 | (props (face-font face t)) | 394 | (props (face-font face t)) |
| 393 | (ans (cdr (format-annotate-single-property-change | 395 | (ans (cdr (format-annotate-single-property-change |
| 394 | 'face nil props enriched-translations)))) | 396 | 'face nil props enriched-translations)))) |
| @@ -396,6 +398,10 @@ which can be the value of the `face' text property." | |||
| 396 | (setq ans (cons (list "x-color" fg) ans))) | 398 | (setq ans (cons (list "x-color" fg) ans))) |
| 397 | (unless (eq bg 'unspecified) | 399 | (unless (eq bg 'unspecified) |
| 398 | (setq ans (cons (list "x-bg-color" bg) ans))) | 400 | (setq ans (cons (list "x-bg-color" bg) ans))) |
| 401 | (if (eq weight 'bold) | ||
| 402 | (setq ans (cons (list "bold") ans))) | ||
| 403 | (if (eq slant 'italic) | ||
| 404 | (setq ans (cons (list "italic") ans))) | ||
| 399 | ans)))) | 405 | ans)))) |
| 400 | 406 | ||
| 401 | ;;; | 407 | ;;; |