From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: display-mm-width return value off on Windows Date: Mon, 10 Jul 2006 12:45:06 +0200 Message-ID: <858xn1n3gt.fsf@lola.goethe.zz> References: <87slldpd8s.fsf@neutrino.caeruleus.net> <44AFB1E1.20906@student.lu.se> <8764i7kywu.fsf@neutrino.caeruleus.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1152528339 25531 80.91.229.2 (10 Jul 2006 10:45:39 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 10 Jul 2006 10:45:39 +0000 (UTC) Cc: Ralf Angeli , lennart.borgman.073@student.lu.se, Eli Zaretskii , emacs-devel@gnu.org, jasonr@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jul 10 12:45:37 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FztGg-0000tp-1p for ged-emacs-devel@m.gmane.org; Mon, 10 Jul 2006 12:45:34 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FztGf-0004oD-JU for ged-emacs-devel@m.gmane.org; Mon, 10 Jul 2006 06:45:33 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FztGR-0004km-Bf for emacs-devel@gnu.org; Mon, 10 Jul 2006 06:45:19 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FztGQ-0004k8-4d for emacs-devel@gnu.org; Mon, 10 Jul 2006 06:45:18 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FztGQ-0004k5-24 for emacs-devel@gnu.org; Mon, 10 Jul 2006 06:45:18 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FztHU-0007ls-Du for emacs-devel@gnu.org; Mon, 10 Jul 2006 06:46:24 -0400 Original-Received: from localhost ([127.0.0.1] helo=lola.goethe.zz) by fencepost.gnu.org with esmtp (Exim 4.34) id 1FztGO-0003WR-Og; Mon, 10 Jul 2006 06:45:17 -0400 Original-Received: by lola.goethe.zz (Postfix, from userid 1002) id 498101C464E1; Mon, 10 Jul 2006 12:45:06 +0200 (CEST) Original-To: storm@cua.dk (Kim F. Storm) In-Reply-To: (Kim F. Storm's message of "Mon, 10 Jul 2006 12:30:24 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) 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:56881 Archived-At: storm@cua.dk (Kim F. Storm) writes: > So I tried to do fix that (in a way similar to the one proposed for > display-mm-*) some time ago, but didn't complete it, as it wasn't > really clear what had to be done. > > First of all, it had to be done per-display (at least X supports > multiple display), > > Secondly, it was not clear to me whether this problem was specific > to X, but I guessed it was not, so changes had to be done for > all platforms (as it involved added stuff to "display-info".) > > Last, but not least, it was unclear what other parts of the code > would also need changes -- e.g. display-mm-* -- which would have > to be reworked to not just use some X-macro like WidthMMOfScreen. Whatever solution is chosen in the end: it is important that the same algorithm is used for converting point size of fonts into pixel size and vice versa. preview-latex needs to guess how many pixels a given font will occupy on the screen in order to create graphics matching in size. And the font sizes are returned in points, namely physical dimensions. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum