From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Reitter Newsgroups: gmane.emacs.devel Subject: width of propertized string Date: Thu, 5 Jun 2008 13:53:03 +0100 Message-ID: <8122960A-4AF5-439B-91CB-F2E51D4E88C5@gmail.com> References: <20ecf6c70806050537k1d343af9r7a05240b5558ea10@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v924) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1212679789 24844 80.91.229.12 (5 Jun 2008 15:29:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 5 Jun 2008 15:29:49 +0000 (UTC) Cc: Nathaniel Cunningham To: Emacs-Devel devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jun 05 17:30:31 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1K4HO2-0002hq-M1 for ged-emacs-devel@m.gmane.org; Thu, 05 Jun 2008 17:28:22 +0200 Original-Received: from localhost ([127.0.0.1]:47162 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K4HNF-0006qG-Dw for ged-emacs-devel@m.gmane.org; Thu, 05 Jun 2008 11:27:33 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K4HLi-00069n-Rl for emacs-devel@gnu.org; Thu, 05 Jun 2008 11:25:58 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K4HLg-000691-VB for emacs-devel@gnu.org; Thu, 05 Jun 2008 11:25:58 -0400 Original-Received: from [199.232.76.173] (port=41502 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K4HLg-00068e-PR for emacs-devel@gnu.org; Thu, 05 Jun 2008 11:25:56 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]:4265) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1K4HK6-0008P3-IO for emacs-devel@gnu.org; Thu, 05 Jun 2008 11:24:18 -0400 Original-Received: from ik-out-1112.google.com ([66.249.90.182]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1K4Exp-0003H0-EF for emacs-devel@gnu.org; Thu, 05 Jun 2008 08:53:09 -0400 Original-Received: by ik-out-1112.google.com with SMTP id c21so342643ika.2 for ; Thu, 05 Jun 2008 05:53:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:cc:message-id:from:to :content-type:content-transfer-encoding:mime-version:subject:date :references:x-mailer; bh=f4kntv4nIG8NOoAqYI24hCxhrBWcK9YPQwlWBx+4Zas=; b=Cy2laAJIbvF7zJaLOoYj3bLq+ruZBHlmA9TPEjuxNLA1oGixpy9gqmNTZfSQlpTnbh WfvcWnlP1wnG2+/tTaf0+K0R1FS2ERpN4RoYgOvi0rGyzb/1B/Mau1m12n3Oma3ML/Gk U1PdYQmTzgov9/ubeReTvmwFtBzeQ1UK2XJcQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=cc:message-id:from:to:content-type:content-transfer-encoding :mime-version:subject:date:references:x-mailer; b=V8GwNbnGbJd/VSBLiMp0M3XyaFcxAxGTmaVOGtxvbwXiPpxOEMDsXmgaGGb+aIUVol SawhN6e8ekCwSLIxZZpld231bJfRmMAGknavsqNEnTN9bawBpSzD9nhOQ7HAbn9bLrXF OtSAMlRcwlQFu5IDN0aEfFpXZxy2Atwx44nnk= Original-Received: by 10.210.11.13 with SMTP id 13mr962794ebk.142.1212670387486; Thu, 05 Jun 2008 05:53:07 -0700 (PDT) Original-Received: from scarlett.inf.ed.ac.uk ( [129.215.174.113]) by mx.google.com with ESMTPS id t2sm1503754gve.9.2008.06.05.05.53.05 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 05 Jun 2008 05:53:06 -0700 (PDT) X-Mailer: Apple Mail (2.924) X-detected-kernel: by mx20.gnu.org: Linux 2.6 (newer, 2) X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:98465 Archived-At: Given a propertized string, how would one find out what its (pixel) dimensions are going to be? This is important to justify text and other graphical elements properly. It is also necessary to correctly wrap (variable-width) text before displaying it. I have asked about this a while ago, but I don't think anything has been implemented. I'd be happy to give it a try, but I need pointers as regards which functions to use: I don't know the display engine at all. I'd appreciate any help with this.