line spacing too big
  Home FAQ Contact Sign in
gnu.emacs.help only
 
Advanced search
POPULAR GROUPS

more...

gnu.emacs.help Profile…
 Up
line spacing too big         


Author: Sebastian Kaps
Date: Sep 5, 2007 06:44

Hi!

I'm trying to switch from XEmacs to Emacs.
When I set the default font with
,----
| (set-default-font "-dejavu-dejavu sans mono-medium-r-normal-*-*-110-*-*-m-*-iso8859-15")
`----
the spacing between the lines is too large - it's like 1.5 lines instead
of a single line. Even (setq-default line-spacing 1) doesn't decrease
it.

Could anyone give me a hint what I'm doing wrong?

--
Ciao, Sebastian
10 Comments
Re: line spacing too big         


Author: Peter Dyballa
Date: Sep 5, 2007 14:32

Am 05.09.2007 um 15:44 schrieb Sebastian Kaps:
> When I set the default font with
> ,----
> | (set-default-font "-dejavu-dejavu sans mono-medium-r-normal-*-
> *-110-*-*-m-*-iso8859-15")
> `----
> the spacing between the lines is too large - it's like 1.5 lines
> instead
> of a single line. Even (setq-default line-spacing 1) doesn't decrease
> it.

It's a feature of this font.

Have you thought of getting Java and using its Lucida Sans Typewriter
font?

--
Mit friedvollen Grüßen

Pete
Show full article (0.69Kb)
no comments
Re: line spacing too big         


Author: Sebastian Kaps
Date: Sep 5, 2007 15:18

// Peter Dyballa writes:
> It's a feature of this font.

It happens with every font I tried. Besides, in XEmacs the line spacing
is correct with the same font.
> Have you thought of getting Java and using its Lucida Sans Typewriter
> font?

I have Java installed and I also tried this font. Same problem.
I made a screenshot: <http://sebastian-kaps.de/misc/fonts.jpg>
The left windows is XEmacs, the right one is Emacs. Both use the same font:
"-lucida-lucidasans typewriter-book-r-normal-*-*-110-*-*-m-*-iso8859-15"

--
Ciao, Sebastian
no comments
Re: line spacing too big         


Author: Peter Dyballa
Date: Sep 5, 2007 16:05

Am 06.09.2007 um 00:18 schrieb Sebastian Kaps:

Could be it's a GTK issue. Can you configure and compile (make
bootstrap) GNU Emacs 22 or 23 without GTK, i.e. ``--with-x-
toolkit=athena´´ or such to see whether your GNU Emacs behaves like
mine? Mine presents itself more like your XEmacs – and I'm not using
GTK, not even for the Window Manager (blackbox).

--
Mit friedvollen Grüßen

Pete

Nazionalismus ist die Religion der armen Schweine
no comments
Re: line spacing too big         


Author: Sebastian Kaps
Date: Sep 6, 2007 00:00

// Peter Dyballa writes:
> Could be it's a GTK issue.

The Emacs in the screenshot doesn't use GTK. I use the Debian package
from Ubuntu Gutsy which provides both, a GTK-version and a version with
Athena widgets. It makes no difference whether I use the GTK-version or
not.
> Can you configure and compile (make bootstrap) GNU Emacs 22 or 23
> without GTK, i.e. ``--with-x- toolkit=athena´´ or such to see whether
> your GNU Emacs behaves like mine? Mine presents itself more like your
> XEmacs and I'm not using GTK, not even for the Window Manager
> (blackbox).

Maybe you just turned off the toolbars? I haven't figured out how to do
this in Emacs yet. But I just downloaded the current 22.1 release and
compiled it with
--with-x-toolkit=athena" - it has the same problem.

--
Ciao, Sebastian
no comments
Re: line spacing too big         


Author: Peter Dyballa
Date: Sep 6, 2007 02:38

Am 06.09.2007 um 09:00 schrieb Sebastian Kaps:
> Maybe you just turned off the toolbars?

Yes, I have so, usually, but this does not change how text is
displayed. I can switch tool-bar on or off and the line spacing does
*not* change.
> I haven't figured out how to do this in Emacs yet.

(tool-bar-mode 0)
> But I just downloaded the current 22.1 release and compiled it with
> "--with-x-toolkit=athena" - it has the same problem.

I presume it's a typical Debian problem, I mean: improvement.

Try to find the system init file. Insert this statement

(defadvice load (before debug-log activate)
(message "(Tipp von Kai G) Lade jetzt: %%s" (ad-get-arg 0)))

and then you'll see in *Messages* which Elisp files get loaded. One
of these has the code that spreads the lines. A proof of my theory
can be to launch GNU Emacs with -Q – then it, hopefully, does not
load any improved or average init files, neither from the system nor
from the user.
Show full article (1.27Kb)
no comments
Re: line spacing too big         


Author: Sebastian Kaps
Date: Sep 6, 2007 03:28

// Peter Dyballa writes:
>> Maybe you just turned off the toolbars?
> Yes, I have so, usually, but this does not change how text is
> displayed. I can switch tool-bar on or off and the line spacing does
> *not* change.

Sorry that was a misunderstanding. When you mentioned GTK and that your
Emacs looked like my XEmacs I thought you concluded from the toolbar of
my Emacs that it uses GTK.
> (tool-bar-mode 0)

Thanks!
> I presume it's a typical Debian problem, I mean: improvement.

I think I can rule that out. I took my self-compiled emacs binary and
ran it with the "-Q" option, so no init files should be read.
Then I changed the default font with "M-: (set-default-font ...)" and
again the line spacing was too big.
> If this behaviour continues to display then I am pretty sure that X11
> has some ergonomic setting on. I've seen similiar things with X11
> (OpenWindows and CDE) on Solaris.
Show full article (1.13Kb)
no comments
Re: line spacing too big         


Author: Peter Dyballa
Date: Sep 6, 2007 04:10

Am 06.09.2007 um 12:28 schrieb Sebastian Kaps:
> Hm, I can't think of such a setting in X.org. Also, I disabled all
> "assistive technologies" in GNOME. If it was related to X, then I
> would
> have the problem in xterm too, since I use the same font there.

One more try (I can't imagine more right now): run 'xrdb -remove'
which should delete all recently set X resources (you can reload them
afterwards via 'xrdb -load ~/.Xdefaults' or such). When you now
launch GNU Emacs with -Q it should launch quite pure and undisturbed ...

--
Mit friedvollen Grüßen

Pete

Musik hilft gegen Taliban, nicht Bomben.
no comments
Re: line spacing too big         


Author: Sebastian Kaps
Date: Sep 6, 2007 10:06

// Peter Dyballa writes:
> One more try (I can't imagine more right now): run 'xrdb -remove' which
> should delete all recently set X resources (you can reload them
> afterwards via 'xrdb -load ~/.Xdefaults' or such). When you now launch
> GNU Emacs with -Q it should launch quite pure and undisturbed ...

Sorry, that also had no effect. I even tried launched a minimal X
session (with just "xterm" in ~/.xinitrc) as another user and the
problem still persisted :-(

--
Ciao, Sebastian
no comments
Re: line spacing too big         


Author: Peter Dyballa
Date: Sep 7, 2007 03:37

Am 06.09.2007 um 19:06 schrieb Sebastian Kaps:
> // Peter Dyballa writes:
>
>> One more try (I can't imagine more right now): run 'xrdb -remove'
>> which
>> should delete all recently set X resources (you can reload them
>> afterwards via 'xrdb -load ~/.Xdefaults' or such). When you now
>> launch
>> GNU Emacs with -Q it should launch quite pure and undisturbed ...
>
> Sorry, that also had no effect. I even tried launched a minimal X
> session (with just "xterm" in ~/.xinitrc) as another user and the
> problem still persisted :-(
>

This minimal session does not mean that no X resources are existing
or are set for this session. Besides making the output of 'xrdb -q'
empty there are still files with default X resources an X client can
find and read and apply ...
Show full article (2.12Kb)
no comments
1 2