all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Andreas Schwab <schwab@linux-m68k.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: Lars Ingebrigtsen <larsi@gnus.org>,
	lockywolf@gmail.com, 35816@debbugs.gnu.org
Subject: bug#35816: 26.2; set-frame-font cannot set some fonts which autocomplete suggests due to dashes in names. I.e. gnu-unifont
Date: Thu, 12 Aug 2021 09:31:44 +0200	[thread overview]
Message-ID: <87im0b9l0f.fsf@igel.home> (raw)
In-Reply-To: <83a6lndud6.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 12 Aug 2021 09:56:05 +0300")

On Aug 12 2021, Eli Zaretskii wrote:

> Another important API that accepts font names is
> set-face-font, and you will see that there's already some heuristics
> in set-face-attribute to support the likes of "Courier-10", which is a
> Fontconfig format of specifying a font family.

Note that fontconfig requires a dash in the family name to be quoted.

$ fc-match 'Montserrat\-ExtraLightItalic'
Montserrat-ExtraLightItalic.pfb: "Montserrat-ExtraLightItalic" "ExtraLight"
$ fc-match 'Montserrat-ExtraLightItalic'
Montserrat-Regular.otf: "Montserrat" "Regular"

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."





  reply	other threads:[~2021-08-12  7:31 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-21  1:56 bug#35816: 26.2; set-frame-font cannot set some fonts which autocomplete suggests due to dashes in names. I.e. gnu-unifont Vladimir Nikishkin
2019-07-09  2:20 ` Lars Ingebrigtsen
     [not found]   ` <CA+A2iZY8bT-prYgB6oTrv6oY4Kyicpo4o52A3jAVVL7yLtjEhg@mail.gmail.com>
2019-07-09 13:22     ` Lars Ingebrigtsen
2019-07-09 13:55       ` Vladimir Nikishkin
2021-08-11 19:02         ` Lars Ingebrigtsen
2021-08-11 19:27           ` Andreas Schwab
2021-08-11 19:33             ` Lars Ingebrigtsen
2021-08-11 20:04               ` Lars Ingebrigtsen
2021-08-12  6:56                 ` Eli Zaretskii
2021-08-12  7:31                   ` Andreas Schwab [this message]
2021-08-12  8:10                     ` Eli Zaretskii
2021-08-12 12:30                       ` Lars Ingebrigtsen
2021-08-12 12:27                   ` Lars Ingebrigtsen
2021-08-12 12:48                     ` Eli Zaretskii
2021-08-12 12:53                       ` Lars Ingebrigtsen
2021-08-12 13:06                         ` Eli Zaretskii

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=87im0b9l0f.fsf@igel.home \
    --to=schwab@linux-m68k.org \
    --cc=35816@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=larsi@gnus.org \
    --cc=lockywolf@gmail.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.