From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/4055 Path: main.gmane.org!not-for-mail From: Taco Hoekwater Newsgroups: gmane.comp.tex.context Subject: Re: [Q] how to use 8r-encoded fonts Date: Tue, 13 Feb 2001 23:23:31 +0100 Sender: owner-ntg-context@let.uu.nl Message-ID: <3A89B3E3.D37C20E@quicknet.nl> References: <3.0.6.32.20010213180550.015d3ec0@server-1> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1035394748 22471 80.91.224.250 (23 Oct 2002 17:39:08 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 17:39:08 +0000 (UTC) Original-To: ntg-context@ntg.nl Xref: main.gmane.org gmane.comp.tex.context:4055 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:4055 Hans Hagen wrote: > > At 02:45 PM 2/13/01 +0100, you wrote: > >Dear all, > > > >could anyone please tell me how to use a 8r-encoded font with context? > > Isn't that ec? I always use texnansi, but taco fo rsure knows -) It's not precisely ec, but it's the base behind ec. Ec encoded fonts are virtual fonts, but it is not possible to reach an unencoded glyph from a virtual font (and a lot of characters in a typical postscript font are 'not used' in adobe encoding), so the PostScript font needs to be re-encoded first so that all glyphs are in usable slots. That's what 8r (r for raw) is: a re-encoded postscript font. It's a very nasty encoding to work with because the accents are all in weird places (for TeX), and there are usualy no ligatures nor kerning info in the metric files. Thanh, why do you need it and precisely what font is it? If you just need a 'simple' re-encoded font, it is probably better to re-encode to TeXNAnsi (8y) which is both a better reencoding and directly supported by context. Basic recipe for using weird encodings: - write (or find) a file that maps all \uccode and \lccode and \accent commands to the right places (that's what the enco-ec and enco-il2 etc. files do) Suppose you call this encoding 'raw' - Write a font definition file that maps Symbolic font names to the corres ponding metrics (like font-ber.tex), like this: \definefontsynonym [Serif] [ptmr8r] [encoding=raw] - Now at the end of this file, redefine the bodyfont commands to make sure that the mapping actually takes place: \definebodyfont [14.4pt,12pt,11pt,10pt,9pt,8pt,7pt,6pt,5pt] [rm] [default] - That's it. Basic recipe for using a weird font that you only need ascii or a specific character from: \definefont[myfont][ptmr8r sa 1] Now you can just call \myfont, as in plain TeX (bonus: the 'sa' stands for 'scaled at'. Symbol fonts defined this way honour \switchtobodyfont commands. Greetings, Taco