From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/43067 Path: news.gmane.org!not-for-mail From: "Wolfgang Schuster" Newsgroups: gmane.comp.tex.context Subject: Re: Fontsize Date: Mon, 11 Aug 2008 10:33:04 +0200 Message-ID: <115224fb0808110133p6d08b277sec2278b0194d7af9@mail.gmail.com> References: <000201c8ea3e$f5604c60$e020e520$@de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1218443879 19472 80.91.229.12 (11 Aug 2008 08:37:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 11 Aug 2008 08:37:59 +0000 (UTC) To: ud@mucschach.de, "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Mon Aug 11 10:38:50 2008 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 lo.gmane.org with esmtp (Exim 4.50) id 1KSSvP-0004GZ-K5 for gctc-ntg-context-518@m.gmane.org; Mon, 11 Aug 2008 10:38:47 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E0F6D1FCE3; Mon, 11 Aug 2008 10:37:48 +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 18327-02-80; Mon, 11 Aug 2008 10:37:08 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D07EC1FBBA; Mon, 11 Aug 2008 10:35:51 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id DC5891FB98 for ; Mon, 11 Aug 2008 10:35:50 +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 29295-05-5 for ; Mon, 11 Aug 2008 10:35:01 +0200 (CEST) Original-Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.243]) by ronja.ntg.nl (Postfix) with ESMTP id C82651FBDB for ; Mon, 11 Aug 2008 10:33:36 +0200 (CEST) Original-Received: by an-out-0708.google.com with SMTP id c8so268786ana.14 for ; Mon, 11 Aug 2008 01:33:36 -0700 (PDT) Original-Received: by 10.100.227.20 with SMTP id z20mr6331690ang.12.1218443584294; Mon, 11 Aug 2008 01:33:04 -0700 (PDT) Original-Received: by 10.100.109.20 with HTTP; Mon, 11 Aug 2008 01:33:04 -0700 (PDT) In-Reply-To: <000201c8ea3e$f5604c60$e020e520$@de> Content-Disposition: inline X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 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:43067 Archived-At: On Sun, Jul 20, 2008 at 10:02 AM, Ulrich Dirr wrote: > Hi, > > is it possible now (with luatex or mkiv) to typeset a document in bp? I've > tried \setupbodyfont[9bp] but the resulting pdf uses 8,97bp which means 9pt > (TeX points)? Yes and no, you're restricted to 2 digits after the decimal point, exact results are only possible with a short modification. \unprotect \def\normalizebodyfontsize#1\to#2% {\scratchdimen#1\relax \ifcase\fontdigits\advance\scratchdimen.5\points\fi \@EA\@EA\@EA\donormalizedbodyfontsize\@EA\WITHOUTPT\the\scratchdimen00000\to#2} \def\donormalizedbodyfontsize#1.#2#3#4#5#6#7\to#8% \points ? {\edef#8% {#1% \ifcase\fontdigits\or \ifcase#2 \else.#2\fi % and not: \ifcase#2\else ... \or \ifcase#2#3 \else.#2\ifcase#3 \else#3\fi\fi % not: \ifcase#2#3\else ... \or \ifcase#2#3#4 \else.#2#3#4\fi \or \ifcase#2#3#4#5 \else.#2#3#4#5\fi \else \ifcase#2#3#4#5#6 \else.#2#3#4#5#6\fi \fi \s!pt}} \protect \chardef\fontdigits=5 \setupbodyfont[9bp] \showgrid \starttext \input ward \the\bodyfontsize \scratchdimen=9bp \the\scratchdimen \stoptext Wolfgang ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________