all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Luca Ferrari <fluca1978@gmail.com>
To: help-gnu-emacs <help-gnu-emacs@gnu.org>
Subject: cannot load fonts
Date: Mon, 11 Apr 2022 15:04:12 +0200	[thread overview]
Message-ID: <CAKoxK+7TpWzq0jNh9b5LBJ2Ku5kairMDomYwH2uA7SGvWAK-zA@mail.gmail.com> (raw)

Hi all,
I've compiled Emacs 28.1 without any particular option on Ubuntu
20.04. Then I've placed the following in my startup file:

(set-frame-font "Source Code Pro")
(set-face-attribute 'default nil :font "Source Code Pro" :height 140)
(set-face-font 'default "Source Code Pro")


However, when Emacs starts, it prints me a warning message and the
font is not loaded:

Warning (initialization): An error occurred while loading
‘/home/luca/.emacs.d/init.el’:
error: Font not available, #<font-spec nil nil Source Code Pro nil nil
nil nil nil nil nil nil nil ((:name . Source Code Pro) (:user-spec .
Source Code Pro))>

but the fonts are there:

% fc-list | grep SourceCodePro
/usr/share/fonts/adobe-sourcecodepro/SourceCodePro-Regular.otf: Source
Code Pro:style=Regular
/usr/share/fonts/adobe-sourcecodepro/SourceCodePro-Light.otf: Source
Code Pro,Source Code Pro Light:style=Light,Regular
/usr/share/fonts/adobe-sourcecodepro/SourceCodePro-It.otf: Source Code
Pro:style=Italic
/usr/share/fonts/adobe-sourcecodepro/SourceCodePro-ExtraLightIt.otf:
Source Code Pro,Source Code Pro ExtraLight:style=ExtraLight
Italic,Italic
/usr/share/fonts/adobe-sourcecodepro/SourceCodePro-Medium.otf: Source
Code Pro,Source Code Pro Medium:style=Medium,Regular
/usr/share/fonts/adobe-sourcecodepro/SourceCodePro-ExtraLight.otf:
Source Code Pro,Source Code Pro ExtraLight:style=ExtraLight,Regular
/usr/share/fonts/adobe-sourcecodepro/SourceCodePro-SemiboldIt.otf:
Source Code Pro,Source Code Pro Semibold:style=Semibold Italic,Italic
/usr/share/fonts/adobe-sourcecodepro/SourceCodePro-MediumIt.otf:
Source Code Pro,Source Code Pro Medium:style=Medium Italic,Italic
/usr/share/fonts/adobe-sourcecodepro/SourceCodePro-LightIt.otf: Source
Code Pro,Source Code Pro Light:style=Light Italic,Italic
/usr/share/fonts/adobe-sourcecodepro/SourceCodePro-BlackIt.otf: Source
Code Pro,Source Code Pro Black:style=Black Italic,Italic
/usr/share/fonts/adobe-sourcecodepro/SourceCodePro-Bold.otf: Source
Code Pro:style=Bold
/usr/share/fonts/adobe-sourcecodepro/SourceCodePro-BoldIt.otf: Source
Code Pro:style=Bold Italic
/usr/share/fonts/adobe-sourcecodepro/SourceCodePro-Semibold.otf:
Source Code Pro,Source Code Pro Semibold:style=Semibold,Regular
/usr/share/fonts/adobe-sourcecodepro/SourceCodePro-Black.otf: Source
Code Pro,Source Code Pro Black:style=Black,Regular


What am I missing here?

Thanks,
Luca



             reply	other threads:[~2022-04-11 13:04 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-11 13:04 Luca Ferrari [this message]
2022-04-27  9:11 ` cannot load fonts Luca Ferrari
2022-04-27  9:29   ` Robert Pluim
2022-04-27  9:34   ` Po Lu
2022-04-27 12:27     ` Luca Ferrari

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=CAKoxK+7TpWzq0jNh9b5LBJ2Ku5kairMDomYwH2uA7SGvWAK-zA@mail.gmail.com \
    --to=fluca1978@gmail.com \
    --cc=help-gnu-emacs@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.