[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Fringes again
From: |
Kim F. Storm |
Subject: |
Re: Fringes again |
Date: |
25 May 2002 01:00:15 +0200 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.2.50 |
Simon Josefsson <address@hidden> writes:
> >> I have one remaining question: How do you find out the default fringe
> >> width? Right now it is hard coded to 10.
> >
> > I thought (without having looked at the code) it was 8 pixels rounded
> > up to a multiple of the width of a character in the default font.
>
Actually, the default is to take 2x8 = 16 pixels and find the minimum
number of characters in the default font that is at least 16 pixels wide,
and then distribute that space evenly between the two fringes.
Suppose the default font width is 6 pixels. This needs 3 characters =
18 pixels to hold the fringes => 9 pixels for each fringe.
If an odd number of pixels are allocated, the extra pixel is
added to the right fringe.
> Right, but how do you programmatically calculate that?
Something like
(/ (* (/ (+ (* 2 8) (frame-char-width) -1)
(frame-char-width))
(frame-char-width))
2)
--
Kim F. Storm <address@hidden> http://www.cua.dk
- Re: Fringes again, (continued)
- Re: Fringes again, Richard Stallman, 2002/05/21
- Re: Fringes again, Simon Josefsson, 2002/05/21
- Re: Fringes again, Miles Bader, 2002/05/21
- Re: Fringes again, Eli Zaretskii, 2002/05/21
- Re: Fringes again, Miles Bader, 2002/05/21
- Re: Fringes again, Simon Josefsson, 2002/05/22
- Re: Fringes again, Miles Bader, 2002/05/23
- Re: Fringes again, Simon Josefsson, 2002/05/24
- Re: Fringes again,
Kim F. Storm <=
- Re: Fringes again, Simon Josefsson, 2002/05/24
- Re: Fringes again, Kim F. Storm, 2002/05/25
- Re: Fringes again, Simon Josefsson, 2002/05/25
Re: Fringes again, Richard Stallman, 2002/05/21