From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/31510 Path: news.gmane.org!not-for-mail From: Taco Hoekwater Newsgroups: gmane.comp.tex.context Subject: Re: character width Date: Tue, 24 Oct 2006 14:55:09 +0200 Message-ID: <453E0D2D.9030205@elvenkind.com> References: <2C25F9DC-49B1-4E1F-9892-B54C6E5626CC@st.estfiles.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1161694535 19536 80.91.229.2 (24 Oct 2006 12:55:35 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 24 Oct 2006 12:55:35 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Tue Oct 24 14:55:32 2006 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1GcLoU-0001NO-HZ for gctc-ntg-context-518@m.gmane.org; Tue, 24 Oct 2006 14:55:26 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6B57B1FA3E; Tue, 24 Oct 2006 14:55:24 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 23188-05; Tue, 24 Oct 2006 14:55:18 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2462B1FB7F; Tue, 24 Oct 2006 14:55:18 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id CDD251FCB7 for ; Tue, 24 Oct 2006 14:55:15 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 22884-07 for ; Tue, 24 Oct 2006 14:55:10 +0200 (CEST) Original-Received: from lochside.elvenkind.com (elvenknd.xs4all.nl [213.84.171.68]) by ronja.ntg.nl (Postfix) with SMTP id 7E5F01FA3E for ; Tue, 24 Oct 2006 14:55:10 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by lochside.elvenkind.com (Postfix) with ESMTP id 34F4C1BE57 for ; Tue, 24 Oct 2006 14:55:10 +0200 (CEST) Original-Received: from lochside.elvenkind.com ([127.0.0.1]) by localhost (glenfiddich.elvenkind.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 32119-06 for ; Tue, 24 Oct 2006 14:55:10 +0200 (CEST) Original-Received: from [10.10.0.6] (glenlivet.elvenkind.com [10.10.0.6]) by lochside.elvenkind.com (Postfix) with ESMTP id E67551BE43 for ; Tue, 24 Oct 2006 14:55:09 +0200 (CEST) User-Agent: Mozilla Thunderbird 1.0.6-7.1.20060mdk (X11/20050322) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: <2C25F9DC-49B1-4E1F-9892-B54C6E5626CC@st.estfiles.de> X-Virus-Scanned: by amavisd-new at elvenkind.net X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 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 X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:31510 Archived-At: Steffen Wolfrum wrote: > Hi, > > for fine-adjusting I need to have a variable horizontal space > sometimes the width of "999" sometimes of "1", for example. > Is there a command that reads the width of a character so it can be > used in some kind of horizontal space? There is a \fontcharwd primitive to measure the width of a single character is a specific font: \hskip \the\fontcharwd \font `1 but it may be easier to put the number(s) in a box and measure the width of that: \setbox\scratchbox=\hbox{999}% \hskip \the\wd \scratchbox Greetings, Taco