From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Reitter Newsgroups: gmane.emacs.help Subject: char-width of a font? pixel-width of a future frame? Date: Sun, 29 May 2005 14:37:55 +0100 Message-ID: <39BFD8D5-F4F5-42DF-9A4F-6F6D062904EA@gmail.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v730) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1117373931 18566 80.91.229.2 (29 May 2005 13:38:51 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 29 May 2005 13:38:51 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun May 29 15:38:43 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DcNzh-0005U3-If for geh-help-gnu-emacs@m.gmane.org; Sun, 29 May 2005 15:38:21 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DcO4O-0006rA-29 for geh-help-gnu-emacs@m.gmane.org; Sun, 29 May 2005 09:43:12 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DcO3Z-0006oH-77 for help-gnu-emacs@gnu.org; Sun, 29 May 2005 09:42:21 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DcO3X-0006n9-UX for Help-gnu-emacs@gnu.org; Sun, 29 May 2005 09:42:20 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DcO3W-0006mI-Rp for Help-gnu-emacs@gnu.org; Sun, 29 May 2005 09:42:19 -0400 Original-Received: from [64.233.184.196] (helo=wproxy.gmail.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DcO0e-00087R-VE for Help-gnu-emacs@gnu.org; Sun, 29 May 2005 09:39:21 -0400 Original-Received: by wproxy.gmail.com with SMTP id 36so3249779wra for ; Sun, 29 May 2005 06:37:59 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:mime-version:content-transfer-encoding:message-id:content-type:to:from:subject:date:x-mailer; b=lnuOJU/vf6rCOtB4vISU0yKSYmjEA0/NyUpxHZMVgUR2QRqo4CmlDNplz6m3y+EP0jScZRKBdBTQfVbye9S3R5JhcRzM4ueZbiWphogqHOfcFdAkyLHdURoEpjo3qbbv3oC+NxX6jxaBPlueYwFwd+HFUGftXkebxeaWv5uzYRQ= Original-Received: by 10.54.54.56 with SMTP id c56mr4374990wra; Sun, 29 May 2005 06:37:59 -0700 (PDT) Original-Received: from ?10.0.0.58? ([82.20.45.45]) by mx.gmail.com with ESMTP id 44sm1891086wri.2005.05.29.06.37.57; Sun, 29 May 2005 06:37:58 -0700 (PDT) Original-To: Help-gnu-emacs@gnu.org X-Mailer: Apple Mail (2.730) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:27054 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:27054 How do I find out either - what the (average) width of characters of a given font/fontset is? or - what, given a set of frame-parameters (including font and width and height), what the pixel-width and pixel-height of a frame are going to be once it is created? I'm trying to put together a few functions that intelligently place frames on the screen, and obviously I need to know what a frame's extensions are going to be before the frame is actually created. Thanks for your help!