all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Nicolas P. Rougier" <nicolas.rougier@inria.fr>
To: emacs-devel <emacs-devel@gnu.org>
Subject: Problem with font selection / BigSur OS
Date: Sat, 28 Nov 2020 18:03:41 +0100	[thread overview]
Message-ID: <m2sg8t76s2.fsf@inria.fr> (raw)


After upgrading to BigSur OS (Apple) and using EmacsMac 27.1, I'm 
unable to select some font weights. It worked with previous 
version (Catalina) and I think this is not related to any Emacs 
change. I would thus like to understand why it fails but I don't 
know where to look for the code responsible to select a font given 
a spec.

More precisely, for the following three lines, the last one 
evaluates to nil:

(find-font (font-spec :family "Roboto Mono" :weight 'regular))
(find-font (font-spec :family "Roboto Mono" :weight 'thin))
(find-font (font-spec :family "Roboto Mono" :weight 'light))

while the equivalent using fc-match on a terminal returns the 
correct filename:

fc-match "Roboto Mono:style=Regular"
fc-match "Roboto Mono:style=Thin"
fc-match "Roboto Mono:style=Light"

From this, I can deduce Emacs doesn't use fontconfig on mac but 
then I don't know which method is used instead.


Nicolas



             reply	other threads:[~2020-11-28 17:03 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-28 17:03 Nicolas P. Rougier [this message]
2020-11-29 12:40 ` Problem with font selection / BigSur OS Daniel Martín
2020-11-29 13:04   ` Nicolas P. Rougier

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=m2sg8t76s2.fsf@inria.fr \
    --to=nicolas.rougier@inria.fr \
    --cc=emacs-devel@gnu.org \
    /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.