View previous topic :: View next topic |
Author |
Message |
Fred Krogh Veteran
Joined: 07 Feb 2005 Posts: 1036 Location: Tujunga, CA
|
Posted: Sun Feb 22, 2015 6:42 pm Post subject: Setting inconsolata font for emacs (SOLVED) |
|
|
I have seen comments on what a nice font inconsolata is for editing code, and decided to try it. After emerging it, I've tried various choices for what to put in my ~/emacs.el file, in ~/.Xresources, and no matter what I've tried when I run "emacs --debug-init ~/.emacs.el", I get "font "whatever I've tried" is not defined. I'm hoping someone knows the proper incantation. Thanks,
Fred
Last edited by Fred Krogh on Tue Feb 24, 2015 3:25 pm; edited 1 time in total |
|
Back to top |
|
|
Zagloj Guru
Joined: 17 Jun 2005 Posts: 344
|
|
Back to top |
|
|
Fred Krogh Veteran
Joined: 07 Feb 2005 Posts: 1036 Location: Tujunga, CA
|
Posted: Mon Feb 23, 2015 11:29 pm Post subject: |
|
|
Thanks for the thought, but that was the first thing tried. Inconsolata does not show up there. Lots of various tries involving (set_frame-font "...") in my .emacs.el file had no luck. Setting various things in .Xresources and the inconsolata fonts could not be found by emacs. I've wandered throught menus in emacs trying to change the directories that emacs uses to search for fonts, but nothing I change in those places seemed to make a difference. |
|
Back to top |
|
|
yngwin Retired Dev
Joined: 19 Dec 2002 Posts: 4572 Location: Suzhou, China
|
Posted: Tue Feb 24, 2015 6:43 am Post subject: |
|
|
Inconsolata is a truetype font. Does your emacs support TTF at all? _________________ "Those who deny freedom to others deserve it not for themselves." - Abraham Lincoln
Free Culture | Defective by Design | EFF |
|
Back to top |
|
|
Fred Krogh Veteran
Joined: 07 Feb 2005 Posts: 1036 Location: Tujunga, CA
|
Posted: Tue Feb 24, 2015 3:24 pm Post subject: |
|
|
Many thanks yngwin. I did not have the xft use flag set. My choice of fonts in emacs has expanded greatly and inconsolata is trivial to select. |
|
Back to top |
|
|
|