From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/14891 Path: main.gmane.org!not-for-mail From: =?us-ascii?Q?Severin_Obertufer?= Newsgroups: gmane.comp.tex.context Subject: fonts in context (general question) Date: Mon, 15 Mar 2004 21:12:01 +0100 Sender: ntg-context-admin@ntg.nl Message-ID: <20040315200943.19D8C10ABC@ref.ntg.nl> Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0000_01C40AD2.2C50A8B0" X-Trace: sea.gmane.org 1079381614 17682 80.91.224.253 (15 Mar 2004 20:13:34 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 15 Mar 2004 20:13:34 +0000 (UTC) Original-X-From: ntg-context-admin@ntg.nl Mon Mar 15 21:13:29 2004 Return-path: Original-Received: from ref.vet.uu.nl ([131.211.172.13] helo=ref.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1B2ySn-0007YW-00 for ; Mon, 15 Mar 2004 21:13:29 +0100 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id 6088410B31; Mon, 15 Mar 2004 21:10:53 +0100 (MET) Original-Received: from mail.gmx.net (imap.gmx.net [213.165.64.20]) by ref.ntg.nl (Postfix) with SMTP id 19D8C10ABC for ; Mon, 15 Mar 2004 21:09:43 +0100 (MET) Original-Received: (qmail 7577 invoked by uid 65534); 15 Mar 2004 20:12:14 -0000 Original-Received: from 211.51.62.81.cust.bluewin.ch (EHLO IBM) (81.62.51.211) by mail.gmx.net (mp012) with SMTP; 15 Mar 2004 21:12:14 +0100 X-Authenticated: #12166249 Original-To: X-Mailer: Microsoft Office Outlook, Build 11.0.5510 Thread-Index: AcQKycXvPq0ptegNS+qFcQ6iYQPv6Q== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Errors-To: ntg-context-admin@ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.0.13 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.comp.tex.context:14891 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:14891 This is a multi-part message in MIME format. ------=_NextPart_000_0000_01C40AD2.2C50A8B0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit hello i have a general question to the use of fonts in context. is that true that i always need a *.tfm and *.pfb file of a font to use it in context?? if i generate some *.tfm (from afm files) with "texfont" context complains about not finding the *.pfb files. when I use texfont *.tfm and *.vf are generated. what are the *.vf files good for?? thanks for an answer. greets severin ------=_NextPart_000_0000_01C40AD2.2C50A8B0 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable
hello
 
i have = a general=20 question to the use of fonts in context.
is = that true that i=20 always need a *.tfm and *.pfb file of a font to use it in=20 context??
if i = generate some=20 *.tfm (from afm files) with "texfont" context complains about not = finding the=20 *.pfb files.
 
when I = use texfont=20 *.tfm and *.vf are generated. what are the *.vf files good=20 for??
 
thanks = for an=20 answer.
 
greets = severin
------=_NextPart_000_0000_01C40AD2.2C50A8B0-- From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/14892 Path: main.gmane.org!not-for-mail From: "Patrick Gundlach" Newsgroups: gmane.comp.tex.context Subject: Re: fonts in context (general question) Date: 15 Mar 2004 23:18:11 +0100 Organization: chaos Sender: ntg-context-admin@ntg.nl Message-ID: References: <20040315200943.19D8C10ABC@ref.ntg.nl> Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1079389176 28347 80.91.224.253 (15 Mar 2004 22:19:36 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 15 Mar 2004 22:19:36 +0000 (UTC) Original-X-From: ntg-context-admin@ntg.nl Mon Mar 15 23:19:29 2004 Return-path: Original-Received: from ref.vet.uu.nl ([131.211.172.13] helo=ref.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1B30Qj-0000uD-00 for ; Mon, 15 Mar 2004 23:19:29 +0100 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id E275610B30; Mon, 15 Mar 2004 23:16:52 +0100 (MET) Original-Received: from lilly.ping.de (lilly.ping.de [62.72.90.2]) by ref.ntg.nl (Postfix) with SMTP id 66BA410ABC for ; Mon, 15 Mar 2004 23:15:41 +0100 (MET) Original-Received: (qmail 526 invoked from network); 15 Mar 2004 22:18:10 -0000 Original-Received: (ofmipd 62.72.92.72); 15 Mar 2004 22:17:48 -0000 Original-Received: from schnee.local (localhost [127.0.0.1]) by hs47-21.hrz.tu-darmstadt.de (8.12.9/8.12.9) with ESMTP id i2FMICqu005701; Mon, 15 Mar 2004 23:18:12 +0100 (CET) Original-Received: (from pg@localhost) by schnee.local (8.12.9/8.12.2/Submit) id i2FMIC87005700; Mon, 15 Mar 2004 23:18:12 +0100 (CET) Original-To: ntg-context@ntg.nl X-Authentication-Warning: schnee.local: pg set sender to patrick@gundla.ch using -f X-Lieblings-Musik: the_capricorns In-Reply-To: <20040315200943.19D8C10ABC@ref.ntg.nl> (Severin Obertufer's message of "Mon, 15 Mar 2004 21:12:01 +0100") User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (darwin) Errors-To: ntg-context-admin@ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.0.13 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.comp.tex.context:14892 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:14892 Hello Severin, > i have a general question to the use of fonts in context. Your question applies to TeX in general (LaTeX as well as other formats).=20 > is that true that i always need a *.tfm and *.pfb file of a font to use it > in context?? if you use pdftex: yes. If you use Knuth's TeX: only *tfm files are used. But as soon as you generate a ps or pdf file for viewing/printing, the pfb file gets used. > if i generate some *.tfm (from afm files) with "texfont" context complains > about not finding the *.pfb files. I don't know anything about texfont, but this looks slightly odd at first sight.=20 > when I use texfont *.tfm and *.vf are generated. what are the *.vf files > good for?? vf stands for virtual font. These fonts are normally used to change the encoding of an original font. You use the vf without noticing it, when switching to ec encoding for example. The dvi driver (or pdftex) is mapping the special characters (8-bit characters) to the position really used in the font (well, not completely true) by looking at the virtual font. For example when you request a =DF (germandbls) and have ec encoding activated, TeX looks for a glyph in position 255 (decimal). But the real font is 8r encoded and the germandbls is in position 223. There is a virtual font (phvr8t.vf for example) that has the mapping 255 -> 223 (377 -> 337 octal): (CHARACTER O 377 (CHARWD R 0.610999) (CHARHT R 0.735498) (CHARDP R 0.011493) (MAP (SETCHAR O 337) ) ) So TeX gets the dimensions from the vf as above, but the dvi/pdf driver looks inside the vf and sees "the charcter 377 (octal) is really character 337 (octal)". But there is much *more* that can be done with vf. See Knuth's "More fun for grand wizards" article about virtual fonts. Patrick --=20 Morgen gibts kein ABC mehr...