From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/17154 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: font variants Date: Fri, 19 Nov 2004 16:11:07 +0100 Message-ID: <419E0D0B.5030300@wxs.nl> References: <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: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1100877105 17274 80.91.229.6 (19 Nov 2004 15:11:45 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 19 Nov 2004 15:11:45 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Fri Nov 19 16:11:21 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 1CVAPt-0000Fz-00 for ; Fri, 19 Nov 2004 16:11:17 +0100 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 678F1126F8; Fri, 19 Nov 2004 16:11:12 +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 19931-06; Fri, 19 Nov 2004 16:11:11 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2A8FC12772; Fri, 19 Nov 2004 16:11:11 +0100 (CET) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id F0DEC12772 for ; Fri, 19 Nov 2004 16:11:09 +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 19953-03 for ; Fri, 19 Nov 2004 16:11:09 +0100 (CET) Original-Received: from mailrelay02.solcon.nl (unknown [212.45.32.200]) by ronja.ntg.nl (Postfix) with ESMTP id 21666126F8 for ; Fri, 19 Nov 2004 16:11:09 +0100 (CET) Original-Received: from server-1.pragma-net.nl (dsl-212-84-128-085.solcon.nl [212.84.128.85]) by mailrelay02.solcon.nl (8.12.11/SQL-8.12.11-5/8.12.11) with ESMTP id iAJFB5sN016192 for ; Fri, 19 Nov 2004 16:11:05 +0100 Original-Received: by server-1.pragma-net.nl (Postfix, from userid 65534) id E7971212E9; Fri, 19 Nov 2004 16:11:07 +0100 (CET) Original-Received: from [10.100.1.191] (unknown [10.100.1.191]) by server-1.pragma-net.nl (Postfix) with ESMTP id 963F41837E for ; Fri, 19 Nov 2004 15:11:06 +0000 (UTC) User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: <20041119141139.19722@news.comp.lancs.ac.uk> X-Virus-Scanned: ClamAV 0.80/540/Tue Oct 19 14:59:23 2004 clamav-milter version 0.80j on mailrelay02 X-Virus-Status: Clean 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:17154 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:17154 Adam Lindsay wrote: > 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? interesting, fetching them > I took inspiration (and code) from the Unicode font mechanisms and the getglyph uses something similar > 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 how about adding support for font classes (i'll look into it) > - 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. doable > Is this more desirable with people \switchbodyfont ing in a doc? > - allows expansion beyond \tf\bf\it\bi\sl\bs\sc choices. so, we need an installable fontstylesuffix (analogue to math switching, no problem) > 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.] ok, done Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------