From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/68448 Path: news.gmane.org!not-for-mail From: Henning Hraban Ramm Newsgroups: gmane.comp.tex.context Subject: fit to width by negative letterspacing or narrowing Date: Tue, 17 May 2011 13:25:31 +0200 Message-ID: <2BAEF00E-F2AE-4E30-9F86-548BB2A7B918@fiee.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset="windows-1252"; Format="flowed"; DelSp="yes" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1305631547 2337 80.91.229.12 (17 May 2011 11:25:47 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 17 May 2011 11:25:47 +0000 (UTC) To: mailing ConTeXt users list for Original-X-From: ntg-context-bounces@ntg.nl Tue May 17 13:25:43 2011 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QMIPH-0004pq-5q for gctc-ntg-context-518@m.gmane.org; Tue, 17 May 2011 13:25:43 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 91E68CACFB; Tue, 17 May 2011 13:25:42 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 47VB1sCXQIeh; Tue, 17 May 2011 13:25:42 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B3E87CACFD; Tue, 17 May 2011 13:25:39 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 40FAFCACFD for ; Tue, 17 May 2011 13:25:38 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id ULtZ8SR5Z7zj for ; Tue, 17 May 2011 13:25:35 +0200 (CEST) Original-Received: from filter1-nij.mf.surf.net (filter1-nij.mf.surf.net [195.169.124.152]) by balder.ntg.nl (Postfix) with ESMTP id C867DCACFB for ; Tue, 17 May 2011 13:25:35 +0200 (CEST) Original-Received: from thesan.fiee.net (thesan.fiee.net [178.77.74.245]) by filter1-nij.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p4HBPYYS016102 for ; Tue, 17 May 2011 13:25:35 +0200 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=fiee.net; b=WP86wSEFfqX7p/wGGHhouSfvz19VYYm37Dq4awCemmy8rqqhvQdgyDnJ7OMPsC23sRKOPWE0RG/KW1D3DaUJCEapQXSfM6G73S1l1fhJ0KZMfGUdjWtjzkiKhsZcEVMr; h=Received:Received:Message-Id:From:To:Content-Type:Content-Transfer-Encoding:Mime-Version:Subject:Date:X-Mailer; Original-Received: (qmail 13356 invoked from network); 17 May 2011 13:25:33 +0200 Original-Received: from 106-81.77-83.cust.bluewin.ch (HELO ?10.128.9.9?) (83.77.81.106) by thesan.fiee.net with ESMTPSA (AES128-SHA encrypted, authenticated); 17 May 2011 13:25:33 +0200 X-Mailer: Apple Mail (2.936) X-Bayes-Prob: 0.0221 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=178.77.74.245; country=DE; region=07; city=Host; latitude=51.6500; longitude=6.1833; http://maps.google.com/maps?q=51.6500,6.1833&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 07EIzpyNQ - 28ba1c75d8cd - 20110517 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.152 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:68448 Archived-At: Hello again, it's been a while... ;-) I need to pack fixed lines into a fixed width box. Some years ago I had something similar in plain PostScript, where I = pre-calculated the width of a text box, let the default font if it = would fit my max size, otherwise try a narrow font and if that wasn=92t = enough decreased font size until it would fit. This time I've only one font and must not decrease font size, but must = use negative kerning and perhaps some artificial narrowing. How can I do that with ConTeXt? I use MkIV, so any Lua solution is welcome. Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________