From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: Pixel-based display functions Date: Sun, 01 Feb 2015 17:30:27 +0100 Message-ID: <54CE54A3.1020707@gmx.at> References: <87k306pfi9.fsf@building.gnus.org> <87egqekrd7.fsf@building.gnus.org> <877fw53eat.fsf@building.gnus.org> <877fw4zsdv.fsf@building.gnus.org> <831tmcn4k4.fsf@gnu.org> <87386szq1w.fsf@building.gnus.org> <83wq44ljm9.fsf@gnu.org> <87vbjowlqv.fsf@building.gnus.org> <83oapglbx6.fsf@gnu.org> <83lhkkl23i.fsf@gnu.org> <83bnlgkl1s.fsf@gnu.org> <837fw3l7uz.fsf@gnu.org> <54CD4B27.4080201@gmx.at> <874mr6qvi5.fsf@building.gnus.org> <87sieqpfxh.fsf@building.gnus.org> <54CDE908.7050908@gmx.at> <87ioflq0dz.fsf@building.gnus.org> <54CE2187.9070003@gmx.at> <83lhkhiq8t.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1422808255 9289 80.91.229.3 (1 Feb 2015 16:30:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 1 Feb 2015 16:30:55 +0000 (UTC) Cc: larsi@gnus.org, monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Feb 01 17:30:55 2015 Return-path: Envelope-to: ged-emacs-devel@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 1YHxQB-0000JK-St for ged-emacs-devel@m.gmane.org; Sun, 01 Feb 2015 17:30:52 +0100 Original-Received: from localhost ([::1]:51018 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YHxQB-0004HO-2d for ged-emacs-devel@m.gmane.org; Sun, 01 Feb 2015 11:30:51 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51949) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YHxQ7-0004Ew-NX for emacs-devel@gnu.org; Sun, 01 Feb 2015 11:30:48 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YHxQ6-0008EJ-Pk for emacs-devel@gnu.org; Sun, 01 Feb 2015 11:30:47 -0500 Original-Received: from mout.gmx.net ([212.227.15.18]:61844) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YHxQ2-00087p-68; Sun, 01 Feb 2015 11:30:42 -0500 Original-Received: from [88.117.59.199] ([88.117.59.199]) by mail.gmx.com (mrgmx003) with ESMTPSA (Nemesis) id 0MAyVY-1YPgdu12bk-009uXm; Sun, 01 Feb 2015 17:30:38 +0100 In-Reply-To: <83lhkhiq8t.fsf@gnu.org> X-Provags-ID: V03:K0:Z/XszfWbgUNzpvRoZBsClbradMewO4NH1/10Otea38qZ9RITg79 IFZuBMXM9giFRVq6lacoyj7xMQ8pTP83ECpcHaaLVj6PDP16sGpe3OXoHoKeShMRi/CzhOa S0z9hW3PnAF0pmUXh198cn3ltym1tW4Kv6/AUeqpklNwmJRXfY3sLlMoGTWbJMw3VmnJgH4 XqmP4c0QcKLmWjWAxENJg== X-UI-Out-Filterresults: notjunk:1; X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 212.227.15.18 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:182193 Archived-At: > Maybe I misunderstand what Lars wants to do, but I think > window-text-pixel-size is the wrong tool for the job: it returns the > pixel size of text between 2 given positions, whereas Lars needs the > opposite: where is the position that produces a given pixel size. That's possible. But `window-text-pixel-size' would give him a way to precalculate the sizes of chunks of his text and allow him to manually insert linebreaks for each column. After that he would insert spaces as column separators and go on. Tedious, but doing the same thing (calculating line breaks with variable width font) in the display engine sounds no fun either . > Also, there's the visual vs logical order issue I mentioned in my > other mail. If `window-text-pixel-size' is kaput in that sense I'll have to fix it anyway. martin