unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Different fframes / different fonts
@ 2008-04-12 21:08 lanas
  2008-04-12 23:14 ` Peter Dyballa
  0 siblings, 1 reply; 5+ messages in thread
From: lanas @ 2008-04-12 21:08 UTC (permalink / raw)
  To: help-gnu-emacs

All,

  I'm certainly asking for somethign far-fecthed.  Is it possible to
assign on the fly a smaller font for one frame while the rest of the
frames maintain their default fonts (eg. emacs -fn "DejaVu LGC Sans
Mono-11") ?

Cheers.




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

* Re: Different fframes / different fonts
  2008-04-12 21:08 Different fframes / different fonts lanas
@ 2008-04-12 23:14 ` Peter Dyballa
  2008-04-12 23:59   ` Drew Adams
  0 siblings, 1 reply; 5+ messages in thread
From: Peter Dyballa @ 2008-04-12 23:14 UTC (permalink / raw)
  To: lanas; +Cc: help-gnu-emacs


Am 12.04.2008 um 23:08 schrieb lanas:
> Is it possible to
> assign on the fly a smaller font for one frame while the rest of the
> frames maintain their default fonts


Yes. M-x set-frame-font.

--
Greetings

   Pete

The mathematician who pursues his studies without clear views of this  
matter, must often have the uncomfortable feeling that his paper and  
pencil surpass him in intelligence.
				– Ernst Mach







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

* RE: Different fframes / different fonts
  2008-04-12 23:14 ` Peter Dyballa
@ 2008-04-12 23:59   ` Drew Adams
  2008-04-13 18:18     ` lanas
  0 siblings, 1 reply; 5+ messages in thread
From: Drew Adams @ 2008-04-12 23:59 UTC (permalink / raw)
  To: 'Peter Dyballa', 'lanas'; +Cc: help-gnu-emacs

> > Is it possible to
> > assign on the fly a smaller font for one frame while the rest of the
> > frames maintain their default fonts
> 
> Yes. M-x set-frame-font.

http://www.emacswiki.org/cgi-bin/wiki/SetFonts#ChangingFontSize

http://www.emacswiki.org/cgi-bin/emacs/zoom-frm.el -
I bind zooming in to 'S-mouse-1' and zooming out to `C-S-mouse-1'.





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

* Re: Different fframes / different fonts
  2008-04-12 23:59   ` Drew Adams
@ 2008-04-13 18:18     ` lanas
  2008-04-13 19:27       ` Drew Adams
  0 siblings, 1 reply; 5+ messages in thread
From: lanas @ 2008-04-13 18:18 UTC (permalink / raw)
  To: help-gnu-emacs

Le Samedi, 12 Avril 2008 16:59:54 -0700,
"Drew Adams" <drew.adams@oracle.com> a écrit :

> > > Is it possible to
> > > assign on the fly a smaller font for one frame while the rest of
> > > the frames maintain their default fonts
> > 
> > Yes. M-x set-frame-font.
> 
> http://www.emacswiki.org/cgi-bin/wiki/SetFonts#ChangingFontSize
> 
> http://www.emacswiki.org/cgi-bin/emacs/zoom-frm.el -
> I bind zooming in to 'S-mouse-1' and zooming out to `C-S-mouse-1'.

I think I did not adopt the right terminology.  emacs' frames are
desktop windows.  It seems that the methods above will resize the font
of a window.  What I thought of with my question was instead to modify a
part of a window eg. when several files are shown in emacs (by using
C-x 2, C-x 3 to split a frame, and loading different files in these),
then would it be possible to resize the font of only one of those
splitted views ?  This is why I thought my question was far-fetched.  I
would be very surprised if it was possible since it seems the fonts are
derived from the parent frame.

It'd be nice though, to have a view of a file in a smaller font, while
the other 'splitted views' (I really don't know how to call them) would
remain at their original font size.

Cheers.




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

* RE: Different fframes / different fonts
  2008-04-13 18:18     ` lanas
@ 2008-04-13 19:27       ` Drew Adams
  0 siblings, 0 replies; 5+ messages in thread
From: Drew Adams @ 2008-04-13 19:27 UTC (permalink / raw)
  To: 'lanas', help-gnu-emacs

> > > > Is it possible to
> > > > assign on the fly a smaller font for one frame while the rest of
> > > > the frames maintain their default fonts
> > > 
> > > Yes. M-x set-frame-font.
> > 
> > http://www.emacswiki.org/cgi-bin/wiki/SetFonts#ChangingFontSize
> > 
> > http://www.emacswiki.org/cgi-bin/emacs/zoom-frm.el -
> > I bind zooming in to 'S-mouse-1' and zooming out to `C-S-mouse-1'.
> 
> I think I did not adopt the right terminology.  emacs' frames are
> desktop windows.  It seems that the methods above will resize the font
> of a window.  What I thought of with my question was instead 
> to modify a
> part of a window eg. when several files are shown in emacs (by using
> C-x 2, C-x 3 to split a frame, and loading different files in these),
> then would it be possible to resize the font of only one of those
> splitted views ?  This is why I thought my question was 
> far-fetched.  I would be very surprised if it was possible since
> it seems the fonts are derived from the parent frame.
> 
> It'd be nice though, to have a view of a file in a smaller font, while
> the other 'splitted views' (I really don't know how to call 
> them) would remain at their original font size.

What you call "splitted views" are called "windows" in Emacs.

The font zooming I cited changes the size of a frame's default font. But you can
use other fonts anywhere you want. You would need to do some Emacs-Lisp coding
(unless someone else has done it), but you could use a different font in
different contexts (e.g. some window). However, there is no such thing as a
window's font, the same way there is a frame's font, so I don't think that what
you want would be straightforward.

If you use one window per frame (e.g. non-nil `pop-up-frames'), then you can
"have a view of a file in a smaller font" while the other frames (e.g. other
files) remain at the same font size. IOW, if you use Emacs frames the way you
are now using Emacs windows, then you can have what you want immediately. If you
stick to Emacs windows, then you will probably need to do some work to get what
you want.






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

end of thread, other threads:[~2008-04-13 19:27 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-12 21:08 Different fframes / different fonts lanas
2008-04-12 23:14 ` Peter Dyballa
2008-04-12 23:59   ` Drew Adams
2008-04-13 18:18     ` lanas
2008-04-13 19:27       ` Drew Adams

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).