From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/6649 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Setting up lbr fonts Date: Thu, 24 Jan 2002 14:23:08 +0100 Sender: owner-ntg-context@let.uu.nl Message-ID: <5.1.0.14.1.20020124140116.02db2aa8@server-1> References: <5.1.0.14.1.20020123093117.033d0c00@server-1> <5.1.0.14.1.20020122132800.032ff078@server-1> <20020122114515.900@oxmail.ox.ac.uk> <5.1.0.14.1.20020122132800.032ff078@server-1> <5.1.0.14.1.20020123093117.033d0c00@server-1> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Trace: main.gmane.org 1035397165 12474 80.91.224.250 (23 Oct 2002 18:19:25 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 18:19:25 +0000 (UTC) Cc: ConTeXt Original-To: Jens-Uwe Morawski In-Reply-To: <20020124115632.520f04b4.morawski@gmx.net> Xref: main.gmane.org gmane.comp.tex.context:6649 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:6649 At 11:56 AM 1/24/2002 +0100, Jens-Uwe Morawski wrote: >What means/does [name] here? > >When i declare a [serif] typescript, why i need: >\definefontsynonym [Serif] [Palatino] name identifier this script as mapping a name onto a style; the \definetypeface macro uses this to identify what it should load (it looks for name, size and map scripts >In my opinion this is redundant. it depends, you may indeed skip that one but then you cannot write style files using the more symbolic Serif instead of Palatino; I tend to write styles independent of the font Or the same question from another point of view: When the font-commands >use or look for Serif, SerifBold ... why the typescript must be declared >as [serif]? you can name it anything you want, this 'serif' is used to locate the script with \definetypeface, \starttypescript [fancyshape] .... combined with \definetypeface [..] [..] [fancyshape] would work as well. >or what would mean a [sans] typescript with the same > \definefontsynonym [Serif...] [...] definitions? you can do that but it does not make sense, however, some font shapes have alternatives, think of [lightserif] so, you can organize your fonts (univers has for instance many alternatives) accordingly and map 'm onto different typefaces, \definetypeface [normal] [rm] [serif] .... \definetypeface [light] [rm] [lightserif] .... > > The next thing is using this font. Of course you can execute typescripts > > yourself but best is to use the command > > > > \definetypeface [myface] [rm] [serif] [adobepalatino] [default] > [encoding=ec] > >Here again. As far as i understand the font-switching-macros use the >declarations >like Serif, or SerifBold. In this case: why i have to declared it as [rm] too? actually the chain is: rmtf <- Serif <- Palatino <- fontname.tfm rmbf <- SerifBold <- PalatinoBold <- boldfontname.tfm so, rmtf, rmbf etc are the internal names ; the rm/ss/tt/hw/cf etc make up a (traditional) collection of familied (in terms of tex) fonts. If you skip the typescript altogether, you can use \definefont to set these, like \definefont [rm] [10pt] [tf=fontname sa 1, bf=boldfontname sa 1] >Or, why i need 'rm' in the next declaration? 'myface' is already defined >as 'rm' > > > > \setupbodyfont[myface,10pt,rm] > > within a typeface there can be rm,ss,etc and the default is the one defined first. Here indeed the rm could be omited, but it does not hurt either. >Hmm, many questions, which show that i understand nothing ;) > >And another question: fontinst generates some fonts including >symbols like degree. upright-mu or the registered-symbol. These >are in (LaTeX) TS1 encoding. What declarations are needed to use them? you can define them as symbols \definesymbol [registered] [\getglyph{Serif}{\char123}] % or {Palatino}{\char123} or {fontname}{\char123} or take your choice these will scale with the current font size. The problem with these symbols is that because they are not always present in a font, we cannot add them to encoding vectors. Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- fall-back web server: www.pragma-pod.nl -------------------------------------------------------------------------