Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
emacs in plasma can not find font installed in system
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Jackie Lin
Tux's lil' helper
Tux's lil' helper


Joined: 31 May 2017
Posts: 89

PostPosted: Sun Jun 18, 2017 8:24 am    Post subject: emacs in plasma can not find font installed in system Reply with quote

Hi, there.
I copied monaco font to /usr/share/fonts/monaco/, and mkfontdir, mkfontscale. I can select Monaco font in Plasma Preferrence.
but in emacs, I write the following in .emacs:
Code:

(set-frame-font "Mocano 18" nil t)
(add-to-list 'default-frame-alist '(font . "Monaco 18"))

when I eval-buffer, emacs indicates that font is not available.
Neither monaco nor other system font can not be found by emacs.
I reemerged emacs with USE gsettings, and still emacs can not find system font.
I have font DejaVu Sans Mono in system. When I use the command 'emacs --font "DejaVu Sans Mono 18" ' to start emacs, the output is 'font is not defined'.
when I fc-list, there is a long list of font name, and that is what saw in plasma font management.
but when I xlsfonts, the output is:
Code:

-misc-fixed-medium-r-semicondensed--0-0-75-75-c-0-iso8859-1
-misc-fixed-medium-r-semicondensed--13-100-100-100-c-60-iso8859-1
-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso8859-1
6x13
cursor
fixed

that is what emacs is using.
Could anyone help me? Thanks!
_________________
peace, focus.
Back to top
View user's profile Send private message
Jackie Lin
Tux's lil' helper
Tux's lil' helper


Joined: 31 May 2017
Posts: 89

PostPosted: Sun Jun 18, 2017 2:24 pm    Post subject: Reply with quote

I reemerged emacs with USE "xft", everything works fine.
_________________
peace, focus.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum