From: "B. T. Raven" <btraven@nihilo.net>
To: help-gnu-emacs@gnu.org
Subject: Re: Calendar & proportional fonts
Date: Sun, 30 Sep 2012 17:41:39 -0500 [thread overview]
Message-ID: <k4ahr80sgc@news6.newsguy.com> (raw)
In-Reply-To: <mailman.10016.1349036618.855.help-gnu-emacs@gnu.org>
> 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
next prev parent reply other threads:[~2012-09-30 22:41 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.10012.1349030681.855.help-gnu-emacs@gnu.org>
2012-09-30 19:10 ` Calendar & proportional fonts 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 [this message]
2012-10-03 14:52 hairryharry
-- strict thread matches above, loose matches on Subject: below --
2012-09-30 12:35 hairryharry
2012-09-30 20:00 ` Peter Dyballa
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=k4ahr80sgc@news6.newsguy.com \
--to=btraven@nihilo.net \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.