I'm interested in setting the global font size but I'm not sure how to
do that. I tried messing around in Easy Customization in the Faces
section but that screwed up my default frame sizing for some reason.
Any thoughts? Also, I'm really interested in using Clear Type fonts.
Can you do this in Emacs?
--
In Christ,
Timmy V.
http://burningones.com/
http://five.sentenc.es/ - Spend less time on e-mail
> Hello Everyone,
>
> I'm interested in setting the global font size but I'm not sure how to
> do that. I tried messing around in Easy Customization in the Faces
> section but that screwed up my default frame sizing for some reason.
>
> Any thoughts? Also, I'm really interested in using Clear Type fonts.
> Can you do this in Emacs?
Here's what I have in my init file. This sets it for all frames.
(modify-all-frames-parameters
'((font . "-microsoft-consolas-medium-r-*-*-*-110-*-*-*-*-iso8859-1")))
Though for emacs23 you can write it as:
(modify-all-frames-parameters
'((font . "Consolas-11")))
I know emacs 23 supports font antialiasing and I think emacs on windows
uses clear type.
Hello Everyone,
I'm interested in setting the global font size but I'm not sure how to
do that. I tried messing around in Easy Customization in the Faces
section but that screwed up my default frame sizing for some reason.
Any thoughts? Also, I'm really interested in using Clear Type fonts.
Can you do this in Emacs?
--
In Christ,
Timmy V.
http://burningones.com/
http://five.sentenc.es/ - Spend less time on e-mail
Thanks.
Geralt
[1]http://www.levien.com/type/myfonts/inconsolata.html
> A bit off-topic, but I think it fits still into this thread: I've
> installed the inconsolata font[1] and I want to use it in my Emacs
> color-theme but I don't know how to add it. Can you help me? I'm using
> Emacs 22.
What OS?
--
Manish
> I've installed the inconsolata font[1] and I want to use it in my
> Emacs color-theme but I don't know how to add it.
Make it known to your X11 fonts sub-system (that's what an
"installed" should express) and then set either an X resource à la:
Emacs.Font: -*-lucidatypewriter-medium-r-*-*-10-*-*-*-m-*-
iso10646-1
(you can additionally use, for example:
Emacs*menu*.font: -*-utopia-bold-r-*-*-11-*-*-*-*-*-iso10646-1
Emacs*pane.menubar.font: -*-lucida-bold-r-*-sans-10-*-*-*-*-*-
iso10646-1
Emacs.dialog*.font: -*-bitstream vera serif-bold-r-*-*-10-*-*-*-*-
*-iso10646-1)
or you put your default font choice into, for example:
(setq initial-frame-alist '(
(tool-bar-lines . 0)
(menu-bar-lines . 2)
(border-color . "gold1")
(cursor-color . "turquoise1")
(mouse-color . "purple3")
(foreground-color . "DarkCyan")
(background-color . "antiquewhite1")
(vertical-scroll-bars . right)
(internal-border-width . 5)
(top . 10) (left . 625) (width . 80) (height . 50)
;• (font . "fontset-global")
))
– and there's also default-frame-alist!
--
Greetings
Pete
Basic, n.:
A programming language. Related to certain social diseases in
that those who have it will not admit it in polite company.
thanks for the suggestion, but it's not really working. The reason is:
I can find the inconsolata font using fc-cat or fc-list but I can't
find it in xfontsel, so I don't know the string that I should write
into my .Xresources file.
How can I find that one out?
Geralt.
> I can find the inconsolata font using fc-cat or fc-list but I can't
> find it in xfontsel
So you obviously need to install it on your system!
--
Greetings
Pete
Bake pizza not war!
But how? I can select it for example in Opera, or in XFCE's settings dialog.
Geralt.
>>> I can find the inconsolata font using fc-cat or fc-list but I can't
>>> find it in xfontsel
>>
>> So you obviously need to install it on your system!
>>
>>
>
> But how? I can select it for example in Opera, or in XFCE's
> settings dialog.
The X11 server needs the files created by (sudo) mkfontscale and
(sudo) mkfontdir. X11 looks into the directories of font path (xset
q). The command 'xset fp rehash' updates server font information.
Xfontsel or xlsfonts are clients of the X11 server-side fonts sub-
system.
When you're user of the client-side fonts sub-system (fontconfig) fc-
cache, which accepts -v, is your friend. This programme follows a
setup given by configuration files like fonts.conf.
--
Greetings
Pete
If all else fails read the instructions.
- Donald Knuth
But Emacs is still not using it, list-fontsets is still
Fontset: -*-*-*-*-*-*-*-*-*-*-*-*-fontset-default
Fontset: -*-fixed-medium-r-normal-*-16-*-*-*-*-*-fontset-standard
Do I have to do something special inside Emacs? Oh and just to be sure
that's the output of "emacs -Q", so there's no color theme that could
change it.
Geralt.
> I have the
> following in my .Xresources:
> Emacs.font: -misc-inconsolata-*-*-*-*-*-*-*-*-*-*-iso8859-1
You can put what you want into .Xresources – no X client ever reads
this file. Except one: xrdb. And it has the choice between
~/.Xresources and ~/.Xdefaults, by default. If xrdb's data base was
not updated, then GNU Emacs does not see any changes in the selected
base file.
--
Greetings
Pete
Atheism is a non prophet organization.
But no inconsolata there :(
Geralt.
>>> I have the
>>> following in my .Xresources:
>>> Emacs.font: -misc-inconsolata-*-*-*-*-*-*-*-*-*-*-iso8859-1
>>
>> You can put what you want into .Xresources – no X client ever
>> reads this
>> file. Except one: xrdb. And it has the choice between
>> ~/.Xresources and
>> ~/.Xdefaults, by default. If xrdb's data base was not updated,
>> then GNU
>> Emacs does not see any changes in the selected base file.
>>
> The only effect this has is that list-fontsets is now one line longer:
> Fontset: -*-*-*-*-*-*-*-*-*-*-*-*-fontset-default
> Fontset: -*-fixed-medium-r-normal-*-16-*-*-*-*-*-fontset-standard
> Fontset: -*-*-*-*-*-*-*-*-*-*-*-*-fontset-startup
>
> But no inconsolata there :(
Is it somewhere documented that from setting a font X resource for
GNU Emacs you get a fontset?
--
Greetings
Pete
Government is actually the worst failure of civilized man. There has
never been a really good one, and even those that are most tolerable
are arbitrary, cruel, grasping and unintelligent.
– H. L. Mencken
Geralt.
> I tried now inside Emacs "(modify-all-frames-parameters '((font .
> "-misc-inconsolata-*-*-*-*-*-*-*-*-*-*-iso8859-1")))", but when
> evaluating this line I get the following error "Debugger entered--Lisp
> error: (error "Font `-misc-inconsolata-*-*-*-*-*-*-*-*-*-*-iso8859-1'
> is not defined")", so I guess there's still something I'm missing?
M-x set-frame-font TAB TAB produces a large *Completions* buffer with
fonts GNU Emacs "sees." It's also possible to evaluate
(x-list-fonts "*-inconsolata-*")
in *scratch* buffer. I found a line
(font . "-adobe-courier-medium-r-*-11-*-iso10646-1")
– and it still works!
--
Greetings
Pete
"What do you think of Western Civilisation?"
"I think it would be a good idea!"
– Mohandas Karamchand Gandhi
Geralt.
Three possible options:
• RTFM
• change syntax
• use different font
The fourth option would be to think of the possible use of
proportional-spaced font of size 0.
--
Greetings
Pete <]
o __o |__ o HPV, the real
___o /I -\<, |o \ -\),-% high speed!
___/\ /\___./ \___...O/ O____.....`-O-'-()--o_________________
> • change syntax
>
In which way? I've used the function you told me about and used the
completion Emacs suggested to me
> • use different font
>
I am not sure that this would help, because if I install another font
I'm likely to run into the very same issue again (and I know that
others are using this font, at least with 23).
> The fourth option would be to think of the possible use of
> proportional-spaced font of size 0.
>
Do you have a specific one in mind? I couldn't find a way to select a
generic one in xfontsel.
And thanks for your effort and time :-)
Geralt.
>> Three possible options:
>>
>> • RTFM
>>
> Which manual then?
It's obviously a problem that GNU Emacs has with the given font name,
which does not seem to have a relation to an existing one. So what
you give to GNU Emacs some correction.
>
>> • change syntax
>>
> In which way? I've used the function you told me about and used the
> completion Emacs suggested to me
Did you read my example with Adobe Courier?
--
Greetings
Pete
These are my principles and if you don't like them... well, I have
others.
- Groucho Marx
today I discovered by chance this link[1], in which stands at the top
"Font anti-aliasing using the Xft library and FreeType fonts is
currently only available for the app-editors/emacs-cvs-23.0.9999
ebuild.", considering that statement it makes sense that I can see the
Inconsolata font, but I can't set it in Emacs.
Geralt.
[1]http://www.gentoo.org/proj/en/lisp/emacs/xft.xml