From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/17147 Path: main.gmane.org!not-for-mail From: "Adam Lindsay" Newsgroups: gmane.comp.tex.context Subject: font variants Date: Fri, 19 Nov 2004 14:11:39 +0000 Message-ID: <20041119141139.19722@news.comp.lancs.ac.uk> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="==_20041119141139.2883-1_==" X-Trace: sea.gmane.org 1100873708 5937 80.91.229.6 (19 Nov 2004 14:15:08 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 19 Nov 2004 14:15:08 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Fri Nov 19 15:14:51 2004 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CV9XH-0002Lt-00 for ; Fri, 19 Nov 2004 15:14:51 +0100 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6ED8C12795; Fri, 19 Nov 2004 15:14:51 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 19364-01; Fri, 19 Nov 2004 15:14:50 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 57B3112787; Fri, 19 Nov 2004 15:11:41 +0100 (CET) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id CE52D12787 for ; Fri, 19 Nov 2004 15:11:39 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 19200-03 for ; Fri, 19 Nov 2004 15:11:38 +0100 (CET) Original-Received: from mail.comp.lancs.ac.uk (unknown [148.88.3.45]) by ronja.ntg.nl (Postfix) with ESMTP id D3D7112772 for ; Fri, 19 Nov 2004 15:11:38 +0100 (CET) Original-Received: from [194.80.36.199] (localhost [127.0.0.1]) by mail.comp.lancs.ac.uk (8.12.10/8.12.10) with ESMTP id iAJEBZqG005350 for ; Fri, 19 Nov 2004 14:11:36 GMT Original-To: "Ntg Context" X-Mailer: CTM PowerMail version 5.0.1 build 4305 English X-Virus-Scanned: by amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 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: by amavisd-new at ntg.nl Xref: main.gmane.org gmane.comp.tex.context:17147 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:17147 --==_20041119141139.2883-1_== Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Hi all, I just wanted to run this technique by you all, and get a bit of feedback, both on the utility as well as the style of the solution. I'm a bit unhealthily obsessed by fonts, especially with getting the most out of the various features. Unfortunately, each vendor expresses different features in different ways, so that leads to font-sensitive markup. This problem explodes in the OpenType and XeTeX world, because of the number of features each font exposes. However, it's relevant in the pdfTeX/type1 world as well. Just last night, I discovered the FPL fonts (SC/OsF for URW Palladio) on CTAN (). How does one access the old style figures in this font without knowing intimately about the font? I took inspiration (and code) from the Unicode font mechanisms and the new font effects. The code is in the attached test-psc, the typescript in type-psc. The result is at . What this does and doesn't do: - generalises font access to features in associated fonts - adapts itself to current size/family/alternative - doesn't allow further adaptation (e.g., \it \Var[osf] 123 \bf 456) - best for short runs of associated fonts (e.g., OsF, sub/superscripts) - can insert arbitrary features into existing typescripts - relies on a couple special naming conventions within typescripts - can be defined based on Serif/Sans/Mono family - is not currently defined based on bodyfont namespace. Is this more desirable with people \switchbodyfont ing in a doc? - allows expansion beyond \tf\bf\it\bi\sl\bs\sc choices. Any thoughts? (If anyone wants to give pointers on the correct usage/relevance of [#1][#2]#3 parameters, pushfont/popfont, and adapting to bodyfont namespaces, please feel free!) [Hans, if you see the general utility of this kind of solution, I'd appreciate the addition of Caps to the \fontstylesuffix.] -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Adam T. Lindsay, Computing Dept. atl@comp.lancs.ac.uk Lancaster University, InfoLab21 +44(0)1524/510.514 Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- --==_20041119141139.2883-1_== Content-Type: multipart/mixed; boundary="==_20041119141139.2883-2_==" --==_20041119141139.2883-2_== Content-Type: application/x-tex; name="test-psc.tex"; x-mac-type="2A2A2A2A"; x-mac-creator="48647261" Content-Disposition: attachment Content-Transfer-Encoding: base64 XHVucHJvdGVjdApcZGVmaW5lc3lzdGVtY29uc3RhbnQge0NhcHN9ClxkZWZcZm9udHN0eWxl c3VmZml4JSAKICB7XGlmeFxmb250YWx0ZXJuYXRpdmVcYyF0ZiAgICAgXHMhUmVndWxhciBc ZWxzZQogICBcaWZ4XGZvbnRhbHRlcm5hdGl2ZVxjIWJmICAgICAgICBccyFCb2xkIFxlbHNl CiAgIFxpZnhcZm9udGFsdGVybmF0aXZlXGMhc2wgICAgIFxzIVNsYW50ZWQgXGVsc2UKICAg XGlmeFxmb250YWx0ZXJuYXRpdmVcYyFpdCAgICAgIFxzIUl0YWxpYyBcZWxzZQogICBcaWZ4 XGZvbnRhbHRlcm5hdGl2ZVxjIWJzIFxzIUJvbGRTbGFudGVkIFxlbHNlCiAgIFxpZnhcZm9u dGFsdGVybmF0aXZlXGMhYmkgIFxzIUJvbGRJdGFsaWMgXGVsc2UKICAgXGlmeFxmb250YWx0 ZXJuYXRpdmVcYyFzYyAgICA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29zZl0xMjN7XFZhcltyZXNldF00NTZ9Nzg5fX0KCgp7 XHRmYlxiZiAxMjN7XFZhcltvc2ZdNDU2fTc4OQoKe1xWYXJbb3NmXSAxMjN7XFZhcltyZXNl dF00NTZ9Nzg5fX0KCgp7XHNjICAxMjN7XFZhcltvc2ZdNDU2fTc4OQoKe1xWYXJbb3NmXSAg MTIze1xWYXJbcmVzZXRdNDU2fTc4OX19ClxzdG9wVEVYcGFnZQpcc3RvcHRleHQK --==_20041119141139.2883-2_== Content-Type: application/x-tex; name="type-psc.tex"; x-mac-type="2A2A2A2A"; x-mac-creator="48647261" Content-Disposition: attachment Content-Transfer-Encoding: base64 XHN0YXJ0dHlwZXNjcmlwdCBbc2VyaWZdIFtwYWxhdGlub10gW2VjLHRleG5hbnNpLDhyXQog XGRlZmluZWZvbnRzeW5vbnltW1RlWFBhbGxhZGlvTC1Cb2xkSXRhbGljT3NGXVtcdHlwZXNj cmlwdHRocmVlLWZwbGJpajhhXSBbZW5jb2Rpbmc9XHR5cGVzY3JpcHR0aHJlZV0gCiBcZGVm aW5lZm9udHN5bm9ueW1bVGVYUGFsbGFkaW9MLUJvbGRPc0ZdICAgICAgW1x0eXBlc2NyaXB0 dGhyZWUtZnBsYmo4YV0gIFtlbmNvZGluZz1cdHlwZXNjcmlwdHRocmVlXSAKIFxkZWZpbmVm b250c3lub255bVtUZVhQYWxsYWRpb0wtU0NdICAgICAgICAgICBbXHR5cGVzY3JpcHR0aHJl ZS1mcGxyYzhhXSAgW2VuY29kaW5nPVx0eXBlc2NyaXB0dGhyZWVdIAogXGRlZmluZWZvbnRz eW5vbnltW1RlWFBhbGxhZGlvTC1JdGFsaWNPc0ZdICAgIFtcdHlwZXNjcmlwdHRocmVlLWZw bHJpajhhXSBbZW5jb2Rpbmc9XHR5cGVzY3JpcHR0aHJlZV0KCiBcZGVmaW5lZm9udHN5bm9u eW0gW1x0eXBlc2NyaXB0dGhyZWUtdXBscjhhLWNhcGl0YWxpemVkLTgwMF0gW1RlWFBhbGxh ZGlvTC1TQ10KXHN0b3B0eXBlc2NyaXB0Cgpcc3RhcnR0eXBlc2NyaXB0IFtzZXJpZl0gW3Bh bGF0aW5vXSBbbmFtZV0KIFxkZWZpbmVmb250c3lub255bSBbU2VyaWZSZWd1bGFyXSAgICAg ICBbU2VyaWZdCiBcZGVmaW5lZm9udHN5bm9ueW0gW1NlcmlmUmVndWxhck9zRl0gICAgW1Rl WFBhbGxhZGlvTC1TQ10KIFxkZWZpbmVmb250c3lub255bSBbU2VyaWZJdGFsaWNPc0ZdICAg ICBbVGVYUGFsbGFkaW9MLUl0YWxpY09zRl0KIFxkZWZpbmVmb250c3lub255bSBbU2VyaWZC b2xkT3NGXSAgICAgICBbVGVYUGFsbGFkaW9MLUJvbGRPc0ZdCiBcZGVmaW5lZm9udHN5bm9u eW0gW1NlcmlmQm9sZEl0YWxpY09zRl0gW1RlWFBhbGxhZGlvTC1Cb2xkSXRhbGljT3NGXQog XGRlZmluZWZvbnRzeW5vbnltIFtTZXJpZkNhcHNPc0ZdICAgICAgIFtUZVhQYWxsYWRpb0wt U0NdClxzdG9wdHlwZXNjcmlwdA== --==_20041119141139.2883-2_==-- --==_20041119141139.2883-1_== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context --==_20041119141139.2883-1_==--