GNU bug report logs - #14634
24.3.50; face attributes for font appearance (:font etc.)

Previous Next

Package: emacs;

Reported by: Drew Adams <drew.adams <at> oracle.com>

Date: Sun, 16 Jun 2013 09:16:02 UTC

Severity: minor

Tags: fixed

Found in version 24.3.50

Fixed in version 27.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Drew Adams <drew.adams <at> oracle.com>
Cc: 14634 <at> debbugs.gnu.org
Subject: bug#14634: 24.3.50; face attributes for font appearance (:font etc.)
Date: Fri, 01 Nov 2019 18:14:35 +0100
Drew Adams <drew.adams <at> oracle.com> writes:

> emacs -Q
> In *scratch*, turn off font-lock-mode, then type this, then hit `C-x C-e':
>
> (put-text-property 92 126 
> 		   'face (list :foundry "outline"
> 			       :family "Lucida Bright"
> 			       :weight "bold" :slant "italic"
> 			       :width "normal"))
>
> You will see the words "to create a file, visit that file" change font,
> but they will not be italic... (I don't think it is bold either, but I
> cannot be sure.)  `C-u C-x =' shows that the property was applied, but
> it is not reflected.

The syntax is with symbols, not strings:

(insert (propertize "foo" 'face (list :foundry "outline"
			               :family "Lucida Bright"
			               :weight 'bold :slant 'italic
			               :width 'normal)))

This isn't mentioned in "Low-Level Font", so I've now done so.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




This bug report was last modified 5 years and 260 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.