From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/115095 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Nedeljkovic via ntg-context Newsgroups: gmane.comp.tex.context Subject: Re: Specifying font size as x-height Date: Sat, 28 May 2022 11:40:29 +0200 Message-ID: References: <6c9ac03f-1c1c-c2f5-d7de-a6f9a4811b47@telus.net> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6570009140922053513==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9387"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Stefan Nedeljkovic , mailing list for ConTeXt users To: Max Chernoff Original-X-From: ntg-context-bounces@ntg.nl Sat May 28 11:41:30 2022 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nuswq-0002E9-OK for gctc-ntg-context-518@m.gmane-mx.org; Sat, 28 May 2022 11:41:28 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id D19A028A0E7; Sat, 28 May 2022 11:40:47 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id aONhgExZXS3Z; Sat, 28 May 2022 11:40:44 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 9D46B28A0EA; Sat, 28 May 2022 11:40:44 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id EE0D628A0E5 for ; Sat, 28 May 2022 11:40:43 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id hU_JRR4goqvs for ; Sat, 28 May 2022 11:40:43 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.160.180; helo=mail-qt1-f180.google.com; envelope-from=tsar.srb@gmail.com; receiver= Original-Received: from mail-qt1-f180.google.com (mail-qt1-f180.google.com [209.85.160.180]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id E6C6728A0DF for ; Sat, 28 May 2022 11:40:42 +0200 (CEST) Original-Received: by mail-qt1-f180.google.com with SMTP id w17so7760604qtk.13 for ; Sat, 28 May 2022 02:40:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=QXlNjV8lT2rded+C31ct2WvperxlqU6DU0KQNnarcog=; b=DhIIdLZTRBu71cc1gUK4+gAy1aKVZoG3H3/fm1GoCeOIw3FxNTmzEwaVGN89HOo0Q4 jj7ayI81AZh/crdbJTPpKBTxzleNIXGgOs8ed97GjOFPoDfVyGLmCOogLmvPZsSIiEzB lROKrEdqCaj3ScWmX9bueX36q/+mJm9qi7e+dj0wHeCQFEgQQ41VLZbnIWyJxfL0tOJ3 uzzhCTVI6OV+G4oZK3ac1cSVFBq8gKA4DAEvcFPO97XQH9NELRqKMExn78Quy2JQsJKp DNZLYwNoIXeBmpRjT/Qon0WZMWOGV/6X8HWGJrnu+4QRGcgICCtfA+PNco43ds8tbMOV lL7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=QXlNjV8lT2rded+C31ct2WvperxlqU6DU0KQNnarcog=; b=6cn6r7EjTzxl0Apsa5FEWSBtFpppjDwaqO1I/cRrDq02YvAMt37LBXgZFhrw3ZUbuN r2Bne3sUPA/lGaEAarwMTZEE8R5uUnyEbDOob2GZ686ZzcXeTN+JleGqIJNxo5Gr9Eca 29dSIt6/ePi8SvdPLSWkDem4winH9zO3mQrOTAQPObfUtspfOh6LeMLppbqaFIfKOORU gmWL89uAZLt0cD/lZhAKjVlDqIu0C//nuEFfTp2nMn0sGsN2OdJ0q4GoSbuDSs1ykl8i pSd7FxyDbv6or+7Rrpy7fMRTjuvFeGMvCZnt4oZaKa67FPznM40AaD/0yqGMbqu0K6Mr wPPA== X-Gm-Message-State: AOAM532N6L2NYE8YJ/XfbYrnj5cJHDzPga2S33f7iJScQwcdf9wMQf/j sxympBObV7orMmk2yiO/HZ3RjRa0jDdDdpmbtHg= X-Google-Smtp-Source: ABdhPJz4ECaEjhINN/qmiecwkdgXnoS6yqVqOQGhO2RBHMwjrtvb/ojNv8zrE3ibXjcuXjHtCewlGoqV+yd59AG5X00= X-Received: by 2002:a05:622a:14c9:b0:2f3:c1e0:a898 with SMTP id u9-20020a05622a14c900b002f3c1e0a898mr37596574qtx.147.1653730840070; Sat, 28 May 2022 02:40:40 -0700 (PDT) In-Reply-To: X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.io gmane.comp.tex.context:115095 Archived-At: --===============6570009140922053513== Content-Type: multipart/alternative; boundary="00000000000046d11d05e00f3797" --00000000000046d11d05e00f3797 Content-Type: text/plain; charset="UTF-8" Perfect, thank you very much Max! On Sat, May 28, 2022 at 10:40 AM Max Chernoff wrote: > On 2022-05-28 2:27 a.m., Stefan Nedeljkovic wrote: > > One slight problem is when I use 2\measured{xheight} as the font size I > > get an error. \measure works fine though. > > The old version expected direct input, not a \dimen. Try this: > > \starttexdefinition setxheight [#1][#2] > \switchtobodyfont[#1, 12pt] > \scratchdimen=\dimexpr#2\relax > \switchtobodyfont[#1, \cldcontext{tex.dimen.scratchdimen / > tex.sp"1ex" * tex.sp"1em" .. "sp"}] > \stoptexdefinition > > \definemeasure[xheight][2.5pt] > > \starttext > \setxheight[adventor][10\measured{xheight}] Hello! > \stoptext > > > -- Max > --00000000000046d11d05e00f3797 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Perfect, thank you very much Max!

On Sat, May 28, 2022 at 1= 0:40 AM Max Chernoff <mseven@telus.n= et> wrote: