From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 5116 invoked from network); 1 Nov 2023 11:46:50 -0000 Received: from cgl.ntg.nl (5.39.185.202) by inbox.vuxu.org with ESMTPUTF8; 1 Nov 2023 11:46:50 -0000 Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 8D5734835D4 for ; Wed, 1 Nov 2023 12:46:46 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id SeRvXPnUsxRj for ; Wed, 1 Nov 2023 12:46:44 +0100 (CET) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 3CF7F483730 for ; Wed, 1 Nov 2023 12:37:39 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 441CC483710 for ; Wed, 1 Nov 2023 12:36:58 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tiM2ddNWqt8R for ; Wed, 1 Nov 2023 12:36:56 +0100 (CET) Received: from outbound.soverin.net (outbound.soverin.net [185.233.34.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by cgl.ntg.nl (Postfix) with ESMTPS id 06C7348370F for ; Wed, 1 Nov 2023 12:36:55 +0100 (CET) Received: from smtp.freedom.nl (c04cst-smtp-frd02.int.sover.in [10.10.4.108]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by outbound.soverin.net (Postfix) with ESMTPS id 4SL4jM6QrDz5t for ; Wed, 1 Nov 2023 11:36:55 +0000 (UTC) Received: from smtp.freedom.nl (smtp.freedom.nl [10.10.4.108]) by freedom.nl (Postfix) with ESMTPSA id 4SL4jM1g5cz2xXx for ; Wed, 1 Nov 2023 11:36:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=freedom.nl; s=default; t=1698838615; bh=PTJCK9jK44CC8TL7s8WGaGjhIo96oq4uNAT4+cpGRPI=; h=Date:Subject:To:References:From:In-Reply-To:From; b=Il5J2wEvNpyxr3/CgIY9Kg/Noapayej1EUnddHXfhkTEOrptq95Prq9jHZNRMFVRT oTp+GxXem7UG4LmFdXUcnjMZX0jtnIfaghm2ApcP7Dlvj/efPakuDkSnaeAoc2P+7T gHiLnPEx4HpefsbW4ZbdvVtfxJt1XEcYE90AGm5s= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freedom.nl; s=default; t=1698838615; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=MJcDg48rOP+24cxfLaNdI3q8m/A6sVGhwOIL9UN8EWc=; b=BUkODXgAWy6f/N756c2wjoH5AYfKgsP7X+vVARdeGNzz0vypoPJgJ2KVrVMYtvFhxIzCyL Dkg/bZ4WebXoDmiehz/P/NTTr8d9IjBqIWdq21iNhZkVV0rEAz4Ra//H9vUIWhulmgPBEr NDWHqxTF+rtmCwIzbOaFAgQahDIBnZA= ARC-Authentication-Results: i=1; smtp.freedom.nl; auth=pass smtp.mailfrom=j.hagen@freedom.nl ARC-Seal: i=1; s=default; d=freedom.nl; t=1698838615; a=rsa-sha256; cv=none; b=wAFEjN+Py6EMLoiEh58Zk9Bw0KopNzrDdh1NIYsPE3nHwaWYk84PFWqlVHEgoi2bmLxIxb mM8WjBQIMlcxf+np+mvUIpNpWA2A8OlRvuMLtdnBQFlWPRc4JePo7z0xGmTChrGOkp+HCq 7wEQFFUbFRP+LsIk/+ZfTTAU+n5/z6w= Content-Type: multipart/mixed; boundary="------------zYYCBFsSxUPh00PBuf0VVZXG" Message-ID: <6b1db780-8097-46e1-a7e0-021f5f35250e@freedom.nl> Date: Wed, 1 Nov 2023 12:36:54 +0100 MIME-Version: 1.0 Content-Language: en-US To: ntg-context@ntg.nl References: X-Soverin-Authenticated: true In-Reply-To: Message-ID-Hash: QOCQ2MUDE5JDQFGCBJBOSV43S4GLNPUB X-Message-ID-Hash: QOCQ2MUDE5JDQFGCBJBOSV43S4GLNPUB X-MailFrom: j.hagen@freedom.nl X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list Reply-To: mailing list for ConTeXt users Subject: [NTG-context] Re: Adobe Source Typescript With Design Sizes List-Id: mailing list for ConTeXt users Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Hans Hagen via ntg-context Cc: Hans Hagen This is a multi-part message in MIME format. --------------zYYCBFsSxUPh00PBuf0VVZXG Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 10/31/2023 8:18 PM, Vincent Hennebert wrote: > Hello there, > > I had mentioned this on a thread some (long) time ago, finally got > around to finishing a first version of a typescript with the Adobe > Source font family, in all its weight alternatives and design sizes (the > latter being available in the Serif style only). > > Comments welcome. If it looks good I can upload it to the wiki, on the > Typescripts_examples page I guess. I have no tiem now to figure out this (somewhat excessive) amount of fonts - hopefully we will not end up in a world where all fonts have many weights which makes it easier for designers not to make choices and delegate that to users instead. That said, - attached a different approach - in your variant you can put the lua in the lfg file (at the top) and then add \loadfontgoodies[...] before where the functions are used I'm not sure if we can talk of design sizes here. It's more about 'usage' because a display vs subhead vs ... variant is not about mixing depending on scale (e.g. using display for 20 pt in a 15 pt setup versus using scaled regular for 20pt and then display 20pt for e.g. a title page or 50pt on posters). > (I have Questions For the Experts further down...) maybe a side effect of not defining a math font > About Adobe Source > ================== > > The fonts are available on GitHub [1]. They are the descendants of the > Source {Serif,Sans,Code} Pro fonts described in the type-imp-source.mkiv > typescript available in the ConTeXt distribution. Due to major changes, > Serif Pro was renamed into Serif 4 in, well, its version 4 [2] (that’s > the version that introduces design sizes, a.k.a. optical sizes), and > Sans Pro was renamed into Sans 3 [3]. > > [1] https://github.com/adobe-fonts/ > [2] https://github.com/adobe-fonts/source-serif/releases/tag/4.004R > [3] https://github.com/adobe-fonts/source-sans/issues/192 > > > Usage > ===== > > Short version: store the attached typescript and its helper Lua files > somewhere on your file system where ConTeXt will find them ($HOME/texmf > for example), then use in your document: > >     \setupbodyfont[adobesource] > > Long version: The default typescript name is adobesource (also available > as adobesource-regular) and has design sizes enabled. > > Each weight is also available: adobesource-extralight, > adobesource-light, etc., all the way to adobesource-black. There is also > a medium weight, that selects the regular versions of Serif and Sans, > but the medium version of Mono (just slightly bolder than the regular > one, presumably for better on-screen rendering in terminals). > > Design sizes can be disabled by adding -nodesignsize- to the typescript > name: adobesource-nodesignsize-extralight, etc. > > Finally, I thought it would be cool to over-engineer the typescript a > little bit and provide direct access to the design sizes (in case one > would want a narrower version for body text, or a bolder and more > expanded version for titles, etc.). Here they are, again in all their > weights: adobesource-caption-extralight, adobesource-smtext-light, > adobesource-subhead, adobesource-display-bold, etc. The ‘regular’ design > size is accessed by simply using adobesource-nodesignsize. > > > Questions For the Experts > ========================= > > To avoid a gigantic typescript file with a lot of duplication, I > offloaded the font filename calculation to a Lua function (see attached > adobesource.lua). I initially wanted to put the Lua code inside the > typescript, but then I had all sorts of weird Lua compilation errors. > The very same code works fine when included in a normal document though. > Could it be that typescripts are processed in some special mode that > doesn’t like Lua syntax? As a workaround, I put the code in an external > file and require it from inside the typescript. > > In the goodies file, I use what I believe is the largest possible font > size that can be used in ConTeXt (16,383pt) to select the Display design > size. Otherwise, text above that size will fall back to the default, > regular design size. > > Now, since I use the goodies file only when design sizes are enabled, I > thought I could make it more robust by using AdobeSource4Display as a > default, that is, for any size above 16.5pt. However, if I mix design > sizes enabled and disabled in a document, the disabled one seems to be > using the goodies file even though it’s not mentioned in the typescript. > Any idea of why? For example: > > \usetypescriptfile[adobesource] > \usebodyfont[adobesource] > \setupbodyfont[adobesource-nodesignsize] > \starttext > This text is typeset in Display when Regular should be used. > > \switchtobodyfont[adobesource] > This text is typeset in Regular with design sizes enabled. > \stoptext > > > What’s Next > =========== > > * A harmonious-looking companion math font. > * A harmonious-looking companion math font that uses glyphs from Adobe > Serif 4 when available. > > > Thanks, > Vincent > > ___________________________________________________________________________________ > If your question is of interest to others as well, please add an entry to the Wiki! > > maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl > webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) > archive : https://github.com/contextgarden/context > wiki : https://wiki.contextgarden.net > ___________________________________________________________________________________ -- ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl ----------------------------------------------------------------- --------------zYYCBFsSxUPh00PBuf0VVZXG Content-Type: text/plain; charset=UTF-8; name="test.tex" Content-Disposition: attachment; filename="test.tex" Content-Transfer-Encoding: base64 XHN0YXJ0dGV4dA0KDQolIHNvdXJjZXNlcmlmNFVTQUdFLVdFSUdIVFtJVF0ub3RmDQoNClxk ZWZpbmV0eXBlc2NyaXB0cHJlZml4IFtiOmFzOmV4dHJhbGlnaHRdW3JlZ3VsYXJdDQpcZGVm aW5ldHlwZXNjcmlwdHByZWZpeCBbYjphczpsaWdodF0gICA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Fx1c2V0eXBlc2NyaXB0 ZmlsZVthZG9iZXNvdXJjZV0NCg0KXHVzZWJvZHlmb250W2Fkb2Jlc291cmNlXQ0KXHVzZWJv ZHlmb250W2Fkb2Jlc291cmNlZGlzcGxheV0NCg0KXHNldHVwYm9keWZvbnRbYWRvYmVzb3Vy Y2VdDQoNCiUgXHN0YXJ0dGV4dA0KDQp7XHN3aXRjaHRvYm9keWZvbnRbYWRvYmVzb3VyY2Vd bm9ybWFsIFxpdCBpdGFsaWMgXGJmIGJvbGQgXGJpIGJvbGRpdGFsaWN9DQoNClxzdGFydG92 ZXJsYXkNCiAgICB7XHN3aXRjaHRvYm9keWZvbnRbYWRvYmVzb3VyY2VddGhpcyBpcyBhIHRl c3R9DQogICAge1xyZWRcc3dpdGNodG9ib2R5Zm9udFthZG9iZXNvdXJjZWRpc3BsYXlddGhp cyBpcyBhIHRlc3R9DQpcc3RvcG92ZXJsYXkNCg0KXHN0YXJ0b3ZlcmxheQ0KICAgIHtcc3dp dGNodG9ib2R5Zm9udFthZG9iZXNvdXJjZV1cYmYgdGhpcyBpcyBhIHRlc3R9DQogICAge1xy ZWRcc3dpdGNodG9ib2R5Zm9udFthZG9iZXNvdXJjZWRpc3BsYXldXGJmIHRoaXMgaXMgYSB0 ZXN0fQ0KXHN0b3BvdmVybGF5DQoNClxzdG9wdGV4dA0K --------------zYYCBFsSxUPh00PBuf0VVZXG Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________________ --------------zYYCBFsSxUPh00PBuf0VVZXG--