all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* defining default face
@ 2008-09-08 12:53 Rodrigo Canellas
  2008-09-08 18:53 ` Allan Gottlieb
       [not found] ` <mailman.18749.1220899993.18990.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 7+ messages in thread
From: Rodrigo Canellas @ 2008-09-08 12:53 UTC (permalink / raw)
  To: help-gnu-emacs

Hi,

I used 'set-default-font' to choose 
"-adobe-courier-medium-r-normal--12-120-75-75-m-70-iso8859-1", but I do 
not know how to edit '.emacs' to make it permanent... could anyone help me?

Thanks a lot!


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.





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

* Re: defining default face
  2008-09-08 12:53 defining default face Rodrigo Canellas
@ 2008-09-08 18:53 ` Allan Gottlieb
       [not found] ` <mailman.18749.1220899993.18990.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 7+ messages in thread
From: Allan Gottlieb @ 2008-09-08 18:53 UTC (permalink / raw)
  To: help-gnu-emacs

At Mon, 08 Sep 2008 09:53:37 -0300 Rodrigo Canellas <rodrigo.canellas@tqtvd.com> wrote:

> I used 'set-default-font' to choose
> "-adobe-courier-medium-r-normal--12-120-75-75-m-70-iso8859-1", but I
> do not know how to edit '.emacs' to make it permanent... could anyone
> help me?

The simplest way is probably to use .Xresources (assuming you are
using X).  Mine is

*Term*font2: 10x20
*Emacs*font: -bitstream-Bitstream Vera Sans Mono-normal-normal-normal-*-12-*-*-*-m-0-iso10646-1
*Emacs*menuBar: off
*Emacs*toolBar: 0

I also have an overblown method for changing the fonts and by
experimenting have found the right sizes for 1-up, 2-up, 3-up, and
4-up (this depends on the screen res, mine is 2560x1600).

The code below is from my .emacs.  I run v23.0.60.

allan

;; Common fonts
;;
(defun ajg-set-font (f)
  "Set current and future frames to have font F"
  (interactive "sFont name (no quotes): ")
  (setq font-dotted-pair (cons 'font f))
  (setq default-frame-alist
	(cons font-dotted-pair (assq-delete-all 'font default-frame-alist)))
  (set-default-font f))
(defun ajg-set-mono-font (size)
  "Set bitstream mono SIZE font for this and future frames"
  (interactive "sSize of bitstream mono font (no quotes): ")
  (ajg-set-font (concat
		 "-bitstream-Bitstream Vera Sans Mono-normal-normal-normal-*-"
		 size "-*-*-*-m-0-iso10646-1")))
(defun mono12-font () (interactive nil) (ajg-set-mono-font "12"))
(defun mono14-font () (interactive nil) (ajg-set-mono-font "14"))
(defun mono16-font () (interactive nil) (ajg-set-mono-font "16"))
(defun mono18-font () (interactive nil) (ajg-set-mono-font "18"))
(defun mono20-font () (interactive nil) (ajg-set-mono-font "20"))
(defun mono25-font () (interactive nil) (ajg-set-mono-font "25"))
(defun 4-up-font   () (interactive nil) (mono12-font))
(defun 3-up-font   () (interactive nil) (mono16-font))
(defun big-font    () (interactive nil) (mono16-font))
(defun 2-up-font   () (interactive nil) (mono25-font))
(defun huge-font   () (interactive nil) (mono25-font))
(defun 1-up-font   () (interactive nil) (mono52-font)) ; for a presentation




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

* Re: defining default face
       [not found] ` <mailman.18749.1220899993.18990.help-gnu-emacs@gnu.org>
@ 2008-09-08 19:03   ` Joost Diepenmaat
  2008-09-08 20:42     ` Allan Gottlieb
       [not found]     ` <mailman.18756.1220906533.18990.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 7+ messages in thread
From: Joost Diepenmaat @ 2008-09-08 19:03 UTC (permalink / raw)
  To: help-gnu-emacs

Allan Gottlieb <gottlieb@nyu.edu> writes:

> At Mon, 08 Sep 2008 09:53:37 -0300 Rodrigo Canellas <rodrigo.canellas@tqtvd.com> wrote:
>
>> I used 'set-default-font' to choose
>> "-adobe-courier-medium-r-normal--12-120-75-75-m-70-iso8859-1", but I
>> do not know how to edit '.emacs' to make it permanent... could anyone
>> help me?
>
> The simplest way is probably to use .Xresources (assuming you are
> using X).  Mine is
>
> *Term*font2: 10x20
> *Emacs*font: -bitstream-Bitstream Vera Sans Mono-normal-normal-normal-*-12-*-*-*-m-0-iso10646-1
> *Emacs*menuBar: off
> *Emacs*toolBar: 0

FWIW, I found that my CVS builds (23.0.60) I need to switch on XFT
explicitly or else it won't use anti-aliasing for the ttf fonts.

From my .Xresources:

Emacs*font: Inconsolata-13
Emacs.FontBackend: xft

-- 
Joost Diepenmaat | blog: http://joost.zeekat.nl/ | work: http://zeekat.nl/


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

* Re: defining default face
  2008-09-08 19:03   ` Joost Diepenmaat
@ 2008-09-08 20:42     ` Allan Gottlieb
       [not found]     ` <mailman.18756.1220906533.18990.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 7+ messages in thread
From: Allan Gottlieb @ 2008-09-08 20:42 UTC (permalink / raw)
  To: help-gnu-emacs

At Mon, 08 Sep 2008 21:03:18 +0200 Joost Diepenmaat <joost@zeekat.nl> wrote:

> FWIW, I found that my CVS builds (23.0.60) I need to switch on XFT
> explicitly or else it won't use anti-aliasing for the ttf fonts.
>
>>From my .Xresources:
>
> Emacs*font: Inconsolata-13
> Emacs.FontBackend: xft

Very interesting.  I don't seem to have to.  The fonts look
anti-aliased to me (xmag shows some "grey" pixels).

I then added the fontbackend and ran xrdb.  xmag shows no change

I use gentoo and have the xft use flag set, which brings in quite a
bit and presumably turns on XFT.

Another possibility is that I use bitstream vera fonts not
Inconsolata.

allan




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

* Re: defining default face
       [not found]     ` <mailman.18756.1220906533.18990.help-gnu-emacs@gnu.org>
@ 2008-09-08 22:00       ` Joost Diepenmaat
  2008-09-09  3:37         ` Allan Gottlieb
       [not found]         ` <mailman.18779.1220931446.18990.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 7+ messages in thread
From: Joost Diepenmaat @ 2008-09-08 22:00 UTC (permalink / raw)
  To: help-gnu-emacs

Allan Gottlieb <gottlieb@nyu.edu> writes:

> At Mon, 08 Sep 2008 21:03:18 +0200 Joost Diepenmaat <joost@zeekat.nl> wrote:
>
>> FWIW, I found that my CVS builds (23.0.60) I need to switch on XFT
>> explicitly or else it won't use anti-aliasing for the ttf fonts.
>>
>>>From my .Xresources:
>>
>> Emacs*font: Inconsolata-13
>> Emacs.FontBackend: xft
>
> Very interesting.  I don't seem to have to.  The fonts look
> anti-aliased to me (xmag shows some "grey" pixels).
>
> I then added the fontbackend and ran xrdb.  xmag shows no change
>
> I use gentoo and have the xft use flag set, which brings in quite a
> bit and presumably turns on XFT.
>
> Another possibility is that I use bitstream vera fonts not
> Inconsolata.

My problem is the same for all anti-aliased fonts, and believe me, it's
VERY noticable. :-)

I built emacs from CVS using

./configure --with-xpm --with-tiff --with-jpeg --with-png --with-rsvg
--with-x-toolkit=gtk

Maybe that means I've got multiple font backends and emacs doesn't
recognize that I want xft or something like that.

-- 
Joost Diepenmaat | blog: http://joost.zeekat.nl/ | work: http://zeekat.nl/


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

* Re: defining default face
  2008-09-08 22:00       ` Joost Diepenmaat
@ 2008-09-09  3:37         ` Allan Gottlieb
       [not found]         ` <mailman.18779.1220931446.18990.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 7+ messages in thread
From: Allan Gottlieb @ 2008-09-09  3:37 UTC (permalink / raw)
  To: help-gnu-emacs

At Tue, 09 Sep 2008 00:00:26 +0200 Joost Diepenmaat <joost@zeekat.nl> wrote:

> Allan Gottlieb <gottlieb@nyu.edu> writes:
>
>> At Mon, 08 Sep 2008 21:03:18 +0200 Joost Diepenmaat <joost@zeekat.nl> wrote:
>>
>>> FWIW, I found that my CVS builds (23.0.60) I need to switch on XFT
>>> explicitly or else it won't use anti-aliasing for the ttf fonts.
>>>
>>>>From my .Xresources:
>>>
>>> Emacs*font: Inconsolata-13
>>> Emacs.FontBackend: xft
>>
>> Very interesting.  I don't seem to have to.  The fonts look
>> anti-aliased to me (xmag shows some "grey" pixels).
>>
>> I then added the fontbackend and ran xrdb.  xmag shows no change
>>
>> I use gentoo and have the xft use flag set, which brings in quite a
>> bit and presumably turns on XFT.
>>
>> Another possibility is that I use bitstream vera fonts not
>> Inconsolata.
>
> My problem is the same for all anti-aliased fonts, and believe me, it's
> VERY noticable. :-)
>
> I built emacs from CVS using
>
> ./configure --with-xpm --with-tiff --with-jpeg --with-png --with-rsvg
> --with-x-toolkit=gtk

Don't you need --with-xft  ?

allan




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

* Re: defining default face
       [not found]         ` <mailman.18779.1220931446.18990.help-gnu-emacs@gnu.org>
@ 2008-09-09 10:28           ` Joost Diepenmaat
  0 siblings, 0 replies; 7+ messages in thread
From: Joost Diepenmaat @ 2008-09-09 10:28 UTC (permalink / raw)
  To: help-gnu-emacs

Allan Gottlieb <gottlieb@nyu.edu> writes:

> At Tue, 09 Sep 2008 00:00:26 +0200 Joost Diepenmaat <joost@zeekat.nl> wrote:
>> My problem is the same for all anti-aliased fonts, and believe me, it's
>> VERY noticable. :-)
>>
>> I built emacs from CVS using
>>
>> ./configure --with-xpm --with-tiff --with-jpeg --with-png --with-rsvg
>> --with-x-toolkit=gtk
>
> Don't you need --with-xft  ?

No. In current CVS emacs --with-xft is the default; you need to
explicitly state --without-xft.

-- 
Joost Diepenmaat | blog: http://joost.zeekat.nl/ | work: http://zeekat.nl/


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

end of thread, other threads:[~2008-09-09 10:28 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-08 12:53 defining default face Rodrigo Canellas
2008-09-08 18:53 ` Allan Gottlieb
     [not found] ` <mailman.18749.1220899993.18990.help-gnu-emacs@gnu.org>
2008-09-08 19:03   ` Joost Diepenmaat
2008-09-08 20:42     ` Allan Gottlieb
     [not found]     ` <mailman.18756.1220906533.18990.help-gnu-emacs@gnu.org>
2008-09-08 22:00       ` Joost Diepenmaat
2008-09-09  3:37         ` Allan Gottlieb
     [not found]         ` <mailman.18779.1220931446.18990.help-gnu-emacs@gnu.org>
2008-09-09 10:28           ` Joost Diepenmaat

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.