emacs-devel
[Top][All Lists]
Advanced

[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 21:38:18 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)

Lars Magne Ingebrigtsen <address@hidden> writes:

> The particularly frustrating thing here is that obviously Emacs has a
> way to select just the correct font I want, since it gives me that if I
> say "emacs -fn futura:size=40".  But I haven't even been able to find
> the code that does that anywhere.  :-)
>
> Still looking...

Ok, I give up.  I think somebody should either remove the documentation
of 'face '(:font ...) completely so that people don't accidentally try
to do something with that form, or document it fully and/or fix bugs in
that area.

I went with

    (let ((face (make-face 'meme-face)))
      (set-face-font
       foo
       (format "-monotype-%s-normal-normal-condensed-*-%s-*-*-*-*-0-iso10646-1"
               (capitalize family)
               font-size))
      (insert (propertize string 'face foo))

instead, which is completely yucky, because I don't want to create that
face.

But it works, at least.

-- 
(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]