all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* cannot load fonts
@ 2022-04-11 13:04 Luca Ferrari
  2022-04-27  9:11 ` Luca Ferrari
  0 siblings, 1 reply; 5+ messages in thread
From: Luca Ferrari @ 2022-04-11 13:04 UTC (permalink / raw)
  To: help-gnu-emacs

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



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-04-27 12:27 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-11 13:04 cannot load fonts Luca Ferrari
2022-04-27  9:11 ` Luca Ferrari
2022-04-27  9:29   ` Robert Pluim
2022-04-27  9:34   ` Po Lu
2022-04-27 12:27     ` Luca Ferrari

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.