unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* set font problem
@ 2008-03-14  7:26 Luca Ferrari
  2008-03-14 14:16 ` Joel J. Adamson
                   ` (2 more replies)
  0 siblings, 3 replies; 14+ messages in thread
From: Luca Ferrari @ 2008-03-14  7:26 UTC (permalink / raw)
  To: help-gnu-emacs

Hi,
I'm using GNU Emacs 22.1.1 (i486-pc-linux-gnu, GTK+ Version 2.12.0) on Linux 
and I'm having a few problems with the font/fontset. My .emacs file has the 
following line:
(set-frame-font "-*-Courier-bold-*-*-*-18-*-*-*-*-*-*-*")

but it does not work, and in fact each time emacs starts, the font is not the 
one I've selected. But if I manually select the above font from the Set 
Font/Fontset menu, I can see the font working. Any idea?

Thanks,
Luca




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

* Re: set font problem
  2008-03-14  7:26 set font problem Luca Ferrari
@ 2008-03-14 14:16 ` Joel J. Adamson
  2008-03-17 10:31   ` Luca Ferrari
  2008-03-14 16:14 ` Peter Dyballa
  2008-03-15 11:33 ` Nikolaj Schumacher
  2 siblings, 1 reply; 14+ messages in thread
From: Joel J. Adamson @ 2008-03-14 14:16 UTC (permalink / raw)
  To: Luca Ferrari; +Cc: help-gnu-emacs

Luca Ferrari <fluca1978@infinito.it> writes:
>

> My .emacs file has the following line:
>
>(set-frame-font "-*-Courier-bold-*-*-*-18-*-*-*-*-*-*-*")
>
> but it does not work, and in fact each time emacs starts, the font is
> not the one I've selected. But if I manually select the above font
> from the Set Font/Fontset menu, I can see the font working. Any idea?

I had a few difficulties getting everything straight with fonts,
fontsets and faces.  I use Emacs 23.0.60 (from CVS) and I found using
.Xdefaults a much better way to control the fonts.


,----
| !Emacs
| Emacs*font:	-xos4-terminus-medium-*-normal-*-16-*-*-*-*-*-iso10646-1
| Emacs*cursorColor:	blue
| Emacs*foreground:	grey77
| Emacs*background:	Black
| !Emacs*fullscreen:	fullheight
`----

Then I just turned off font-family on most of my faces.


Do you want the same default font on every frame, or just certain frames?

Joel


-- 
Joel J. Adamson
Biostatistician
Pediatric Psychopharmacology Research Unit
Massachusetts General Hospital
Boston, MA  02114
(617) 643-1432
(303) 880-3109
Public key: http://pgp.mit.edu

The information transmitted in this electronic communication is intended only
for the person or entity to whom it is addressed and may contain confidential
and/or privileged material. Any review, retransmission, dissemination or other
use of or taking of any action in reliance upon this information by persons or
entities other than the intended recipient is prohibited. If you received this
information in error, please contact the Compliance HelpLine at 800-856-1983 and
properly dispose of this information.







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

* Re: set font problem
  2008-03-14  7:26 set font problem Luca Ferrari
  2008-03-14 14:16 ` Joel J. Adamson
@ 2008-03-14 16:14 ` Peter Dyballa
  2008-03-17 10:33   ` Luca Ferrari
  2008-03-15 11:33 ` Nikolaj Schumacher
  2 siblings, 1 reply; 14+ messages in thread
From: Peter Dyballa @ 2008-03-14 16:14 UTC (permalink / raw)
  To: Luca Ferrari; +Cc: help-gnu-emacs


Am 14.03.2008 um 08:26 schrieb Luca Ferrari:

> (set-frame-font "-*-Courier-bold-*-*-*-18-*-*-*-*-*-*-*")

Maybe you should just choose a useful encoding, -iso10646-1 for  
example ... Otherwise GNU Emacs might not be able to choose one font  
from a dozen or some dozens.

--
Greetings

   Pete

The human brain operates at only 10% of its capacity. The rest is  
overhead for the operating system.






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

* Re: set font problem
  2008-03-14  7:26 set font problem Luca Ferrari
  2008-03-14 14:16 ` Joel J. Adamson
  2008-03-14 16:14 ` Peter Dyballa
@ 2008-03-15 11:33 ` Nikolaj Schumacher
  2008-03-17 10:31   ` Luca Ferrari
  2 siblings, 1 reply; 14+ messages in thread
From: Nikolaj Schumacher @ 2008-03-15 11:33 UTC (permalink / raw)
  To: Luca Ferrari; +Cc: help-gnu-emacs

Luca Ferrari <fluca1978@infinito.it> wrote:

> (set-frame-font "-*-Courier-bold-*-*-*-18-*-*-*-*-*-*-*")

Try this in you .emacs
(add-to-list 'default-frame-alist
  '(font . "-*-Courier-bold-*-*-*-18-*-*-*-*-*-*-*"))


regards,
Nikolaj Schumacher




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

* Re: set font problem
  2008-03-14 14:16 ` Joel J. Adamson
@ 2008-03-17 10:31   ` Luca Ferrari
  2008-03-17 12:25     ` Peter Dyballa
  0 siblings, 1 reply; 14+ messages in thread
From: Luca Ferrari @ 2008-03-17 10:31 UTC (permalink / raw)
  To: help-gnu-emacs

On Friday 14 March 2008 your cat, walking on the keyboard, wrote:
> ,----
>
> | !Emacs
> | Emacs*font:	-xos4-terminus-medium-*-normal-*-16-*-*-*-*-*-iso10646-1
> | Emacs*cursorColor:	blue
> | Emacs*foreground:	grey77
> | Emacs*background:	Black
> | !Emacs*fullscreen:	fullheight
>

I've tried to disable font and colors in my .emacs and to enable them in 
the .Xdefaults, but they are not working. Neither the fonts and the colors.

Luca




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

* Re: set font problem
  2008-03-15 11:33 ` Nikolaj Schumacher
@ 2008-03-17 10:31   ` Luca Ferrari
  0 siblings, 0 replies; 14+ messages in thread
From: Luca Ferrari @ 2008-03-17 10:31 UTC (permalink / raw)
  To: Nikolaj Schumacher; +Cc: help-gnu-emacs

On Saturday 15 March 2008 Nikolaj Schumacher's cat, walking on the keyboard, 
wrote:
> Luca Ferrari <fluca1978@infinito.it> wrote:
> > (set-frame-font "-*-Courier-bold-*-*-*-18-*-*-*-*-*-*-*")
>
> Try this in you .emacs
> (add-to-list 'default-frame-alist
>   '(font . "-*-Courier-bold-*-*-*-18-*-*-*-*-*-*-*"))
>

Uhm...still not working, any idea?

Luca




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

* Re: set font problem
  2008-03-14 16:14 ` Peter Dyballa
@ 2008-03-17 10:33   ` Luca Ferrari
  2008-03-17 15:33     ` Joel J. Adamson
  0 siblings, 1 reply; 14+ messages in thread
From: Luca Ferrari @ 2008-03-17 10:33 UTC (permalink / raw)
  To: Peter Dyballa; +Cc: help-gnu-emacs

On Friday 14 March 2008 Peter Dyballa's cat, walking on the keyboard, wrote:
> Am 14.03.2008 um 08:26 schrieb Luca Ferrari:
> > (set-frame-font "-*-Courier-bold-*-*-*-18-*-*-*-*-*-*-*")
>
> Maybe you should just choose a useful encoding, -iso10646-1 for
> example ... Otherwise GNU Emacs might not be able to choose one font
> from a dozen or some dozens.
>

Peter, could please be more specific? I don't understand that.
Thanks,
Luca




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

* Re: set font problem
  2008-03-17 10:31   ` Luca Ferrari
@ 2008-03-17 12:25     ` Peter Dyballa
  0 siblings, 0 replies; 14+ messages in thread
From: Peter Dyballa @ 2008-03-17 12:25 UTC (permalink / raw)
  To: Luca Ferrari; +Cc: help-gnu-emacs


Am 17.03.2008 um 11:31 schrieb Luca Ferrari:

> I've tried to disable font and colors in my .emacs and to enable  
> them in
> the .Xdefaults, but they are not working. Neither the fonts and the  
> colors.

Because GNU Emacs does not read ~/.Xdefaults. It gets the settings  
from a database. This database is managed by xrdb. So you first need  
to merge the new settings or re-load the complete file.

--
Greetings

   Pete

Imbecility, n.:
	A kind of divine inspiration, or sacred fire affecting
	censorious critics of this dictionary.
			– Ambrose Bierce: _The Devil's Dictionary_





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

* Re: set font problem
  2008-03-17 10:33   ` Luca Ferrari
@ 2008-03-17 15:33     ` Joel J. Adamson
  2008-03-18 10:32       ` Luca Ferrari
  0 siblings, 1 reply; 14+ messages in thread
From: Joel J. Adamson @ 2008-03-17 15:33 UTC (permalink / raw)
  To: Luca Ferrari; +Cc: help-gnu-emacs

Luca Ferrari <fluca1978@infinito.it> writes:

> On Friday 14 March 2008 Peter Dyballa's cat, walking on the keyboard, wrote:
>> Am 14.03.2008 um 08:26 schrieb Luca Ferrari:
>> > (set-frame-font "-*-Courier-bold-*-*-*-18-*-*-*-*-*-*-*")
>>
>> Maybe you should just choose a useful encoding, -iso10646-1 for
>> example ... Otherwise GNU Emacs might not be able to choose one font
>> from a dozen or some dozens.
>>
>
> Peter, could please be more specific? I don't understand that.

He means that after you edit .Xdefaults, you use the command

$ xrdb .Xdefaults

to update the databse of X variables.

I just use M-! xrdb .Xdefaults RET in Emacs.  Of course if you're using
Emacs, you may need to restart Emacs, or open a new frame ;)

Joel

-- 
Joel J. Adamson
Biostatistician
Pediatric Psychopharmacology Research Unit
Massachusetts General Hospital
Boston, MA  02114
(617) 643-1432
(303) 880-3109
Public key: http://pgp.mit.edu

The information transmitted in this electronic communication is intended only
for the person or entity to whom it is addressed and may contain confidential
and/or privileged material. Any review, retransmission, dissemination or other
use of or taking of any action in reliance upon this information by persons or
entities other than the intended recipient is prohibited. If you received this
information in error, please contact the Compliance HelpLine at 800-856-1983 and
properly dispose of this information.







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

* Re: set font problem
  2008-03-17 15:33     ` Joel J. Adamson
@ 2008-03-18 10:32       ` Luca Ferrari
  2008-03-18 11:52         ` Andrea Vettorello
  2008-03-18 13:15         ` Joel J. Adamson
  0 siblings, 2 replies; 14+ messages in thread
From: Luca Ferrari @ 2008-03-18 10:32 UTC (permalink / raw)
  To: help-gnu-emacs

On Monday 17 March 2008 your cat, walking on the keyboard, wrote:
> He means that after you edit .Xdefaults, you use the command
>
> $ xrdb .Xdefaults
>
> to update the databse of X variables.

Done, but now emacs refuses to start saying:
No fonts match `-xos4-terminus-medium-*-normal-*-16-*-*-*-*-*-iso10646-1'
and I've tried also with Courier fonts.

Any idea?

Thanks,
Luca




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

* Re: set font problem
  2008-03-18 10:32       ` Luca Ferrari
@ 2008-03-18 11:52         ` Andrea Vettorello
  2008-03-18 12:29           ` Peter Dyballa
  2008-03-18 13:15         ` Joel J. Adamson
  1 sibling, 1 reply; 14+ messages in thread
From: Andrea Vettorello @ 2008-03-18 11:52 UTC (permalink / raw)
  To: help-gnu-emacs

On Tue, Mar 18, 2008 at 11:32 AM, Luca Ferrari <fluca1978@infinito.it> wrote:
> On Monday 17 March 2008 your cat, walking on the keyboard, wrote:
>  > He means that after you edit .Xdefaults, you use the command
>  >
>  > $ xrdb .Xdefaults
>  >
>  > to update the databse of X variables.
>
>  Done, but now emacs refuses to start saying:
>  No fonts match `-xos4-terminus-medium-*-normal-*-16-*-*-*-*-*-iso10646-1'
>  and I've tried also with Courier fonts.
>
>  Any idea?

Use "xfontsel" to create a XLFD (X Logical Font Description) that's
available in your system.


-- 
Andrea




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

* Re: set font problem
  2008-03-18 11:52         ` Andrea Vettorello
@ 2008-03-18 12:29           ` Peter Dyballa
  2008-03-18 12:49             ` Peter Dyballa
  0 siblings, 1 reply; 14+ messages in thread
From: Peter Dyballa @ 2008-03-18 12:29 UTC (permalink / raw)
  To: Andrea Vettorello; +Cc: help-gnu-emacs


Am 18.03.2008 um 12:52 schrieb Andrea Vettorello:

> Use "xfontsel" to create a XLFD (X Logical Font Description) that's
> available in your system.


That's probably not the solution ... it's just a part! IMO, based on  
heuristics, it would work with less asterisks in XLFD, i.e. when they  
are substituted with real values.

I have in ~/.Xdefaults the definition of a fontset, and this fontset  
is then used as value for the Emacs.Font resource. GNU Emacs 21.3.50  
does not like it when the fontset has too many asterisks ...

--
Greetings

   Pete

If you don't find it in the index, look very carefully through the  
entire catalogue.
	–  Sears, Roebuck, and Co., Consumer's Guide, 1897








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

* Re: set font problem
  2008-03-18 12:29           ` Peter Dyballa
@ 2008-03-18 12:49             ` Peter Dyballa
  0 siblings, 0 replies; 14+ messages in thread
From: Peter Dyballa @ 2008-03-18 12:49 UTC (permalink / raw)
  To: help gnu emacs


Am 18.03.2008 um 13:29 schrieb Peter Dyballa:

> IMO, based on heuristics, it would work with less asterisks in  
> XLFD, i.e. when they are substituted with real values.


I have to correct myself: GNU Emacs 21.3.50 also works with lots of  
asterisks!

Well, xlsfonts can list if your font choice is known to the system.  
If not, check with xset that your font path is complete. If not, make  
it complete. It might help to invoke, in any case,

	xset fp rehash

Then check with xlsfonts again.

--
Greetings

   Pete

Bake pizza not war!







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

* Re: set font problem
  2008-03-18 10:32       ` Luca Ferrari
  2008-03-18 11:52         ` Andrea Vettorello
@ 2008-03-18 13:15         ` Joel J. Adamson
  1 sibling, 0 replies; 14+ messages in thread
From: Joel J. Adamson @ 2008-03-18 13:15 UTC (permalink / raw)
  To: Luca Ferrari; +Cc: help-gnu-emacs

Luca Ferrari <fluca1978@infinito.it> writes:

> On Monday 17 March 2008 your cat, walking on the keyboard, wrote:
>> He means that after you edit .Xdefaults, you use the command
>>
>> $ xrdb .Xdefaults
>>
>> to update the databse of X variables.
>
> Done, but now emacs refuses to start saying:
> No fonts match `-xos4-terminus-medium-*-normal-*-16-*-*-*-*-*-iso10646-1'
> and I've tried also with Courier fonts.

Do you have the font?  If you want terminus, you have to get it from
http://www.is-vn.bg/hamster/jimmy-en.html --- I really like it ;)

Use xfontsel: pick a family that you like, then hit the "select" button,
and then middle-click into the frame where you're editing .Xdefaults.
Then do 'xrdb .Xdefaults' and then restart Emacs.

I have never had a problem putting in as many asterisks as there were in
xfontsel, although it's a good idea to narrow it down to a spacing
(spc), registry (rgistry) and encoding (encding).

Joel

-- 
Joel J. Adamson
Biostatistician
Pediatric Psychopharmacology Research Unit
Massachusetts General Hospital
Boston, MA  02114
(617) 643-1432
(303) 880-3109
Public key: http://pgp.mit.edu

The information transmitted in this electronic communication is intended only
for the person or entity to whom it is addressed and may contain confidential
and/or privileged material. Any review, retransmission, dissemination or other
use of or taking of any action in reliance upon this information by persons or
entities other than the intended recipient is prohibited. If you received this
information in error, please contact the Compliance HelpLine at 800-856-1983 and
properly dispose of this information.







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

end of thread, other threads:[~2008-03-18 13:15 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-14  7:26 set font problem Luca Ferrari
2008-03-14 14:16 ` Joel J. Adamson
2008-03-17 10:31   ` Luca Ferrari
2008-03-17 12:25     ` Peter Dyballa
2008-03-14 16:14 ` Peter Dyballa
2008-03-17 10:33   ` Luca Ferrari
2008-03-17 15:33     ` Joel J. Adamson
2008-03-18 10:32       ` Luca Ferrari
2008-03-18 11:52         ` Andrea Vettorello
2008-03-18 12:29           ` Peter Dyballa
2008-03-18 12:49             ` Peter Dyballa
2008-03-18 13:15         ` Joel J. Adamson
2008-03-15 11:33 ` Nikolaj Schumacher
2008-03-17 10:31   ` Luca Ferrari

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).