[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Accessing rendered image data

From: Lars Magne Ingebrigtsen
Subject: Re: Accessing rendered image data
Date: Tue, 28 Jun 2016 19:37:52 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)

Eli Zaretskii <address@hidden> writes:

>> From: Lars Magne Ingebrigtsen <address@hidden>
>> Date: Tue, 28 Jun 2016 17:37:23 +0200
>> But if I say
>> (insert (propertize "FOO" 'face (list :font (find-font (font-spec
>> :name "futura" :size 40)))))
>> FOO
>> and then say (font-at (point)) on that FOO, I get:
>> #<font-object "-misc-fixed-medium-r-normal--20-200-75-75-c-100-iso8859-1">
> Did you turn off font-lock in that buffer?

It's a fundamental mode buffer, so I would hope that there's no font


(insert (propertize "FOO" 'face (list :family "futura")))

gives me something Futura, but not with the font features I want to
specify (like size).

Either there's something wrong with 'face '(:font ...) somewhere, or I
have a syntax error of some kind in my invocation, but it's hard to
tell, because the font documentation doesn't really give any relevant
examples that I can see...

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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]