From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/41964 Path: news.gmane.org!not-for-mail From: "Charles P. Schaum" Newsgroups: gmane.comp.tex.context Subject: Re: fonts (in luatex) (again) Date: Sat, 28 Jun 2008 12:55:43 -0500 Message-ID: <1214675743.7122.23.camel@elbereth> References: <441B3D72-7906-465D-881E-2A821D1CBFC5@di.unito.it> 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 1214675845 10217 80.91.229.12 (28 Jun 2008 17:57:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 28 Jun 2008 17:57:25 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Jun 28 19:58:11 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 1KCegN-000790-EN for gctc-ntg-context-518@m.gmane.org; Sat, 28 Jun 2008 19:57:55 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A06F01FC93; Sat, 28 Jun 2008 19:57:03 +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 00448-01-14; Sat, 28 Jun 2008 19:56:21 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 85A371FC9B; Sat, 28 Jun 2008 19:56:21 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E37541FC98 for ; Sat, 28 Jun 2008 19:56:20 +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 03262-01 for ; Sat, 28 Jun 2008 19:55:47 +0200 (CEST) Original-Received: from smtp109.sbc.mail.mud.yahoo.com (smtp109.sbc.mail.mud.yahoo.com [68.142.198.208]) by ronja.ntg.nl (Postfix) with SMTP id 2B29E1FCE4 for ; Sat, 28 Jun 2008 19:55:46 +0200 (CEST) Original-Received: (qmail 88916 invoked from network); 28 Jun 2008 17:55:45 -0000 Original-Received: from unknown (HELO ?192.168.1.103?) (verbo.solo@sbcglobal.net@69.153.102.24 with plain) by smtp109.sbc.mail.mud.yahoo.com with SMTP; 28 Jun 2008 17:55:45 -0000 X-YMail-OSG: Zd1.WbYVM1lVtJr8tB7WzE8kU3x5tKdI7c7WHCEJDhuncoRKmPVWHNKmjUv7g4LHIsQCzGAyXx04D.7Hz3vd8hIeaYXoh8URIoQ164.FDiXXQtE1SaT0vy0NrAVP5S0zWw8- X-Yahoo-Newman-Property: ymail-3 In-Reply-To: <441B3D72-7906-465D-881E-2A821D1CBFC5@di.unito.it> X-Mailer: Evolution 2.22.2 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:41964 Archived-At: This first bit differentiates a "backend" that refers to your font and a "frontend" that you normally work with. Why? Macros, macros, macros. Let's put it this way: You could have a myriad of styles. That's what many in the WYSIWYG world do. Then ... they have to keep track of them all. But TeX, as a Turing-complete programming language that could theoretically be used for lots of things, has the design of local redefinition, so that "sans" within a group or a macro can be redefined to something other than delicious without you needing to worry about keeping track of global style changes. In short, like the Unix "small is beautiful" philosophy (and good programming) you make parts of your document that work, you put the working parts together, and the whole thing should have a good shot at working. It will also be remarkably consistent and behave in a manner that is more regular than, for example, Word's typesetting engine. And if you are working on a source for different outputs or even different possibilities of publication, you can switch out a font without having to muck about through every font reference in your document, saving hours of labor. > > \starttypescript [sans] [delicious] > \setups[font:fallback:sans] > \definefontsynonym [Sans] [Delicious-Regular] > \definefontsynonym [SansItalic] [Delicious-Italic] > \definefontsynonym [SansBold] [Delicious-Bold] > \definefontsynonym [SansBoldItalic] [Delicious-BoldItalic] > \definefontsynonym [SansCaps] [Delicious-Caps] > \stoptypescript > As I understand, this next bit maps the "expectations" of the typesetting engine to the capabilities of the font. For example, when working with InDesign/InCopy and importing things from Word, there's a difference between character style mappings and local overrides. Word processors usually employ local overrides. That means usually the typesetting engine picks from the alternative of a font face for bold, italic, and so on, or it takes the default face and changes its rasterization to create a faux bold, italic, and so on. In good typesetting, however, you actually link character styles with actual fonts, just like you would when hand-compositing blocks of type in a typecase with lots of clamps and so on. This bit looks like what character styles do in InDesign. The more I get into InDesign and work with my designers, the more I understand the basic typographical principles that make TeX and ConTeXt elegant. > > \starttypescript [sans] [delicious] > \definefontsynonym [Delicious-Regular] [name:Delicious-Roman] > [features=default] > \definefontsynonym [Delicious-Italic] [name:Delicious-Italic] > [features=default] > \definefontsynonym [Delicious-Bold] [name:Delicious-Bold] > [features=default] > \definefontsynonym [Delicious-BoldItalic] > [name:Delicious-BoldItalic] [features=default] > \definefontsynonym [Delicious-Caps] [name:Delicious-SmallCaps] > [features=default] > \stoptypescript > > The following is not in the Ubuntu-distributed manual, so I am not sure about it. > \starttypescript [delicious] > \definetypeface [delicious] [ss] [sans] [delicious] [default] > \stoptypescript > ___________________________________________________________________________________ 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 ___________________________________________________________________________________