all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Thomas Morgan <tlm@ziiuu.com>, Kenichi Handa <handa@gnu.org>
Cc: 29630@debbugs.gnu.org
Subject: bug#29630: 25.3; Unable to change fontset using :family face attribute
Date: Sun, 10 Dec 2017 19:24:26 +0200	[thread overview]
Message-ID: <83fu8its1h.fsf@gnu.org> (raw)
In-Reply-To: <871sk3twx3.fsf@ziiuu.com> (message from Thomas Morgan on Sat, 09 Dec 2017 16:26:48 -0500)

> From: Thomas Morgan <tlm@ziiuu.com>
> Date: Sat, 09 Dec 2017 16:26:48 -0500
> 
> The documentation for the :font attribute doesn't say that it can 
> be a fontset.  But (elisp)Font and Color Parameters says the `font'
> frame parameter can be the name of a fontset and the frame parameter 
> is "equivalent to the `font' attribute of the `default' face".  So 
> one can infer that the :font attribute of a face can be a fontset 
> name.  I tested this:
> 
>   (progn
>     (set-face-attribute 'default nil :font
>                         "-*-liberation mono-normal-normal-normal-*-*-*-*-*-m-0-fontset-liberation")
>     (font-at 0 nil "a"))
> 
> This changes the font to Liberation Mono as expected:
> 
>   #<font-object "-1ASC-Liberation Mono-normal-normal-normal-*-15-*-*-*-m-0-iso10646-1">
> 
> I also tried equivalent expressions with set-face-font and
> using the fontset alias, all of which succeeded.
> 
> The font is correct but the fontset is actually fontset-auto1, 
> not fontset-liberation.  I'll make another report about that.
> 
> I think the documentation for the :family attribute should be 
> changed to explain how to refer to a fontset if it's possible
> to do that.  If it's not possible to specify a fontset with the
> :family attribute, the text about fontsets should be removed.

Thanks, I've updated the documentation to match what the code does.

I'm CC'ing Handa-san, who might know more about this, and maybe
explain how to fix the code to accept fontsets as value of :family.
Currently, it doesn't seem to work, and I don't know enough about this
to figure out whether it ever did or was supposed to.  This whole area
of Emacs is awfully under-documented.





  reply	other threads:[~2017-12-10 17:24 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-09 21:26 bug#29630: 25.3; Unable to change fontset using :family face attribute Thomas Morgan
2017-12-10 17:24 ` Eli Zaretskii [this message]
2017-12-21 15:19   ` handa
2017-12-24  5:25     ` Thomas Morgan
2017-12-27 12:33       ` handa

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83fu8its1h.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=29630@debbugs.gnu.org \
    --cc=handa@gnu.org \
    --cc=tlm@ziiuu.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.