From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "B. T. Raven" Newsgroups: gmane.emacs.help Subject: Re: Calendar & proportional fonts Date: Sun, 30 Sep 2012 17:41:39 -0500 Organization: NewsGuy - Unlimited Usenet $19.95 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1349045118 27082 80.91.229.3 (30 Sep 2012 22:45:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 30 Sep 2012 22:45:18 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Oct 01 00:45:21 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TISGD-0001Au-Sm for geh-help-gnu-emacs@m.gmane.org; Mon, 01 Oct 2012 00:45:18 +0200 Original-Received: from localhost ([::1]:58038 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TISG8-0004Ac-Fw for geh-help-gnu-emacs@m.gmane.org; Sun, 30 Sep 2012 18:45:12 -0400 Original-Path: usenet.stanford.edu!news.glorb.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!spln!extra.newsguy.com!newsp.newsguy.com!news6 Original-Newsgroups: gnu.emacs.help Original-Lines: 76 Original-NNTP-Posting-Host: p9006eda95e7619d01ce52fd5b63ded4f662d8f907682fe07.newsdawg.com User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20120907 Thunderbird/15.0.1 In-Reply-To: X-Received-Bytes: 3272 Original-Xref: usenet.stanford.edu gnu.emacs.help:194678 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:87014 Archived-At: > On 30/09/12 20:10, B. T. Raven wrote: >> Die Sun Sep 30 2012 07:35:24 GMT-0500 (Central Daylight Time) >> hairryharry 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