unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Calendar & proportional fonts
@ 2012-09-30 12:35 hairryharry
  2012-09-30 20:00 ` Peter Dyballa
  0 siblings, 1 reply; 6+ messages in thread
From: hairryharry @ 2012-09-30 12:35 UTC (permalink / raw)
  To: help-gnu-emacs

Hi,

When I use proportional fonts in emacs 23 & 24 I find the calendar dates 
do not line up. OK with fixed fonts.

Fairly new to emacs but have tried fiddling with calendar spacing 
variables but not able to fix.

Any ideas or pointers would be gratefully received.

Thanks,

Mike



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

* Re: Calendar & proportional fonts
       [not found] <mailman.10012.1349030681.855.help-gnu-emacs@gnu.org>
@ 2012-09-30 19:10 ` B. T. Raven
  2012-09-30 20:23   ` hairryharry
       [not found]   ` <mailman.10016.1349036618.855.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 6+ messages in thread
From: B. T. Raven @ 2012-09-30 19:10 UTC (permalink / raw)
  To: help-gnu-emacs

Die Sun Sep 30 2012 07:35:24 GMT-0500 (Central Daylight Time)
hairryharry <hairryharry@tesco.net> scripsit:

> Hi,
> 
> When I use proportional fonts in emacs 23 & 24 I find the calendar dates
> do not line up. OK with fixed fonts.
> 
> Fairly new to emacs but have tried fiddling with calendar spacing
> variables but not able to fix.
> 
> Any ideas or pointers would be gratefully received.
> 
> Thanks,
> 
> Mike
> 

I set up two frames in .emacs, one with a default proportional font, and
the other with a fixed font. Then I can look at Calendar correctly in
the fixed font frame.

Ed



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

* Re: Calendar & proportional fonts
  2012-09-30 12:35 Calendar & proportional fonts hairryharry
@ 2012-09-30 20:00 ` Peter Dyballa
  0 siblings, 0 replies; 6+ messages in thread
From: Peter Dyballa @ 2012-09-30 20:00 UTC (permalink / raw)
  To: hairryharry; +Cc: help-gnu-emacs


Am 30.09.2012 um 14:35 schrieb hairryharry:

> Any ideas or pointers would be gratefully received.

Maybe the Emacs Lisp Manual offers some pointers how to position characters by a fraction of character width.

Does it help to assume that GNU Emacs is not a graphical editor but works character oriented?

Leave it fixed width fonts! Then it's easier to understand why GNU Emacs offers functions to operate on columns of text.

In last millennium there was a time when you could find in the category "state-of-the-art" alpha-numerical text terminals which offered on 25 different lines space for exactly 80 characters. No-one more, no-one less. And each character the same size. That's the time when the GNU Emacs his or her story started. And that's the time when you could buy mechanical typewriters. See: http://en.wikipedia.org/wiki/Typewriter

--
Greetings

  Pete

Almost anything is easier to get into than out of.
				– Allen's Law




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

* Re: Calendar & proportional fonts
  2012-09-30 19:10 ` B. T. Raven
@ 2012-09-30 20:23   ` hairryharry
       [not found]   ` <mailman.10016.1349036618.855.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 6+ messages in thread
From: hairryharry @ 2012-09-30 20:23 UTC (permalink / raw)
  To: help-gnu-emacs

On 30/09/12 20:10, B. T. Raven wrote:
> Die Sun Sep 30 2012 07:35:24 GMT-0500 (Central Daylight Time)
> hairryharry <hairryharry@tesco.net> scripsit:
>
>> Hi,
>>
>> When I use proportional fonts in emacs 23 & 24 I find the calendar dates
>> do not line up. OK with fixed fonts.
>>
>> Fairly new to emacs but have tried fiddling with calendar spacing
>> variables but not able to fix.
>>
>> Any ideas or pointers would be gratefully received.
>>
>> Thanks,
>>
>> Mike
>>
> I set up two frames in .emacs, one with a default proportional font, and
> the other with a fixed font. Then I can look at Calendar correctly in
> the fixed font frame.
>
> Ed
>
>
Thanks Ed,

Had sort of heard about doing that but not sure how to. Could you give 
me a pointer to how you set the frames up in your .emacs.
Thanks,

Mike



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

* Re: Calendar & proportional fonts
       [not found]   ` <mailman.10016.1349036618.855.help-gnu-emacs@gnu.org>
@ 2012-09-30 22:41     ` B. T. Raven
  0 siblings, 0 replies; 6+ messages in thread
From: B. T. Raven @ 2012-09-30 22:41 UTC (permalink / raw)
  To: help-gnu-emacs


> On 30/09/12 20:10, B. T. Raven wrote:
>> Die Sun Sep 30 2012 07:35:24 GMT-0500 (Central Daylight Time)
>> hairryharry <hairryharry@tesco.net> scripsit:
>>
>>> Hi,
>>>
>>> When I use proportional fonts in emacs 23 & 24 I find the calendar dates
>>> do not line up. OK with fixed fonts.
>>>
>>> Fairly new to emacs but have tried fiddling with calendar spacing
>>> variables but not able to fix.
>>>
>>> Any ideas or pointers would be gratefully received.
>>>
>>> Thanks,
>>>
>>> Mike
>>>
>> I set up two frames in .emacs, one with a default proportional font, and
>> the other with a fixed font. Then I can look at Calendar correctly in
>> the fixed font frame.
>>
>> Ed
>>
>>
> Thanks Ed,
> 
> Had sort of heard about doing that but not sure how to. Could you give
> me a pointer to how you set the frames up in your .emacs.
> Thanks,
> 
> Mike
> 


My .emacs intializes the w32 build, so you will need to use different
font names, etc. but the lisp functionality should be the same:

Near end of my .emacs is this
Arial

(setq initial-frame-alist '((name . "arial") (top . 370) (left . 1)
(width . 205) (height . 18)))

(custom-set-faces
  ;; custom-set-faces was added by Custom.
  ;; If you edit it by hand, you could mess it up, so be careful.
  ;; Your init file should contain only one such instance.
  ;; If there is more than one, they won't work right.
 '(default ((t (:stipple nil :background "ghostwhite" :foreground
"black" :inverse-video nil :box nil :strike-through nil :overline nil
:underline nil :slant normal :weight normal :height 108 :width normal
:family "outline-arial unicode ms"))))
 '(scroll-bar ((t (:background "#ffffff" :foreground "#000000")))))


and then for the fixed Courier font:


(make-frame '((name . "courier")
           (top . 1) (left . 1) (width . 123) (height . 18)
           (visibility . icon) ; nil or icon
     ))

(select-frame-by-name "courier")
(set-frame-font "-outline-Courier
New-normal-r-normal-normal-*-*-96-96-c-*-iso10646-1")

the frame coords are from long ago when they made approx. equal frames
at top and bottom of some monitor screen. It would be nice if they could
be parameterized somehow so that they would fit automatically on any
screen size. Lines would wrap at different points because a certain
screen width in pixels would accommodate only so many characters.

Ed


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

* Re: Calendar & proportional fonts
@ 2012-10-03 14:52 hairryharry
  0 siblings, 0 replies; 6+ messages in thread
From: hairryharry @ 2012-10-03 14:52 UTC (permalink / raw)
  To: help-gnu-emacs

Just a follow-up thanks to B.T.Raven.

Now set-up as I wanted - thanks for your .emacs and with reference to 
the section on emacswiki got it sorted out.

Mike



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

end of thread, other threads:[~2012-10-03 14:52 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-30 12:35 Calendar & proportional fonts hairryharry
2012-09-30 20:00 ` Peter Dyballa
     [not found] <mailman.10012.1349030681.855.help-gnu-emacs@gnu.org>
2012-09-30 19:10 ` B. T. Raven
2012-09-30 20:23   ` hairryharry
     [not found]   ` <mailman.10016.1349036618.855.help-gnu-emacs@gnu.org>
2012-09-30 22:41     ` B. T. Raven
  -- strict thread matches above, loose matches on Subject: below --
2012-10-03 14:52 hairryharry

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