[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Accessing rendered image data
From: |
Eli Zaretskii |
Subject: |
Re: Accessing rendered image data |
Date: |
Tue, 28 Jun 2016 21:51:33 +0300 |
> From: Lars Magne Ingebrigtsen <address@hidden>
> Cc: address@hidden
> Date: Tue, 28 Jun 2016 20:35:53 +0200
>
> Oh, I see... find-font doesn't return a font object, but a font entity
> object... And 'face (:font... wants a font object? Is that the
> problem?
Not according to documentation:
‘:font’
The font used to display the face. Its value should be a font
object. *Note Low-Level Font::, for information about font
objects, font specs, and font entities.
When specifying this attribute using ‘set-face-attribute’ (*note
Attribute Functions::), you may also supply a font spec, a font
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
entity, or a string. Emacs converts such values to an appropriate
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
font object, and stores that font object as the actual attribute
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
value. If you specify a string, the contents of the string should
^^^^^
be a font name (*note (emacs)Fonts::); if the font name is an XLFD
containing wildcards, Emacs chooses the first font matching those
wildcards. Specifying this attribute also changes the values of
the ‘:family’, ‘:foundry’, ‘:width’, ‘:height’, ‘:weight’, and
‘:slant’ attributes.
So maybe you should use set-face-attribute, and only it.
- Re: Accessing rendered image data, (continued)
- Re: Accessing rendered image data, Lars Magne Ingebrigtsen, 2016/06/28
- Re: Accessing rendered image data, Eli Zaretskii, 2016/06/28
- Re: Accessing rendered image data, Lars Magne Ingebrigtsen, 2016/06/28
- Re: Accessing rendered image data, Eli Zaretskii, 2016/06/28
- Re: Accessing rendered image data, Lars Magne Ingebrigtsen, 2016/06/28
- Re: Accessing rendered image data, Lars Magne Ingebrigtsen, 2016/06/28
- Re: Accessing rendered image data, Lars Magne Ingebrigtsen, 2016/06/28
- Re: Accessing rendered image data, Lars Magne Ingebrigtsen, 2016/06/28
- Re: Accessing rendered image data, Robert Weiner, 2016/06/28
- Re: Accessing rendered image data, Lars Magne Ingebrigtsen, 2016/06/28
- Re: Accessing rendered image data,
Eli Zaretskii <=
Re: Accessing rendered image data, Eli Zaretskii, 2016/06/28