Re: Metafont to something real

2001-03-06 Thread Nelson H. F. Beebe

Michael Everson [EMAIL PROTECTED] writes on 
Tue, 6 Mar 2001 06:12:31 -0800 (GMT-0800):

 How do I convert Metafonts to outline fonts?

This is a distinctly nontrivial problem, and there have been several
projects, some commercial, and some freely distributable, to do so.  I
can provide detailed references to anyone who is interested.

Metafont has a more powerful drawing model than that of Type 1 fonts,
notably supporting pens of arbitrary shape, and erasure.  The hinting
models for low resolution also differ sharply.

The standard TeX Computer Modern fonts are available in the CTAN
archives in both Metafont and Adobe Type 1 format.  The latter can be
found in any CTAN mirror, e.g.,

ftp://ctan.math.utah.edu/tex-archive/fonts/cm/ps-type1

in two different flavors, BaKoMa, and Bluesky.  There are copyrights
and licenses with both of these; see bakoma/BaKoMa-CM.Fonts and
bluesky/READ.ME respectively.

---
- Nelson H. F. BeebeTel: +1 801 581 5254  -
- Center for Scientific Computing   FAX: +1 801 585 1640, +1 801 581 4148 -
- University of UtahInternet e-mail: [EMAIL PROTECTED]  -
- Department of Mathematics, 322 INSCC  [EMAIL PROTECTED]  [EMAIL PROTECTED] -
- 155 S 1400 E RM 233   [EMAIL PROTECTED]-
- Salt Lake City, UT 84112-0090, USAURL: http://www.math.utah.edu/~beebe  -
---



Re: Metafont to something real

2001-03-06 Thread Valeriy E. Ushakov

On Tue, Mar 06, 2001 at 06:56:04 -0800, Nelson H. F. Beebe wrote:

 The standard TeX Computer Modern fonts are available in the CTAN
 archives in both Metafont and Adobe Type 1 format.  The latter can be
 found in any CTAN mirror, e.g.,
 
   ftp://ctan.math.utah.edu/tex-archive/fonts/cm/ps-type1

Beware that at least BlueSky fonts has buggy AFMs.  Appreantly the
converter was not following MF rules and it produced more then one
kerning pair (KPX) entries for some glyphs.

E.g. cmr12.afm gives:

KPX k a -54.396
KPX k a -27.197

which is obviously an error.  Here's the roman.mf:

 ligtable "k": if serifs: "v": "a" kern -u#, fi\\"w": "e" kern k#,
  "a" kern k#, "o" kern k#, "c" kern k#;

Reading this is not for mere mortals, so let's examine output of
tfmtopl cmr12.tfm

In LIGTABLE we have (uwe: in pl files notation 'C x' means literal
character 'x'):

   (LABEL C k)
   (LABEL C v)
   (KRN C a R -0.054398)--
   (LABEL C w)
   (KRN C e R -0.027199)
   (KRN C a R -0.027199)--
   (KRN C o R -0.027199)
   (KRN C c R -0.027199)
   (STOP)

My understanding of the Appendix F of MFbook is that ligtable program
stops on first match, so for (k,a) the correct kerning is -0.054398.
But apparently the converter was buggy.  The fix is to remove all the
duplicates except first (adjusting StartKernpairs line accordingly).

Depending on the program that you feed AFMs to, this might be ok, give
you a wrong kerning or give you an error message about duplicate KPX.
Actually, that's how I found it - a user of Lout batch formatter
reported that Lout complains about BlueSky fonts.


Yes - I tried to report this problem but never heard back.

SY, Uwe
-- 
[EMAIL PROTECTED] |   Zu Grunde kommen
http://www.ptc.spbu.ru/~uwe/|   Ist zu Grunde gehen



Re: Metafont to something real

2001-03-06 Thread Michael Everson

Um, sorry. I had better be clearer. I need to get Oliver Corff's
Soyombo Metafont into an outline format, without learning higher
mathematics or downloading some enormous version of TeX which I will
never use except for this one operation. Has anyone done this before
and would they like to volunteer to help me out?

Thanks,
--
Michael Everson  **  Everson Gunn Teoranta  **   http://www.egt.ie
15 Port Chaeimhghein ochtarach; Baile tha Cliath 2; ire/Ireland
Mob +353 86 807 9169 ** Fax +353 1 478 2597 ** Vox +353 1 478 2597
27 Pirc an Fhithlinn;  Baile an Bhthair;  Co. tha Cliath; ire



Re: Metafont to something real

2001-03-06 Thread John Cowan

Michael Everson wrote:


 How do I convert Metafonts to outline fonts?

This is a hard problem which Lin YawJen [EMAIL PROTECTED]
claims to have solved; try contacting him.

-- 
There is / one art || John Cowan [EMAIL PROTECTED]
no more / no less  || http://www.reutershealth.com
to do / all things || http://www.ccil.org/~cowan
with art- / lessness   \\ -- Piet Hein




Re: Metafont to something real

2001-03-06 Thread John Jenkins


On Tuesday, March 6, 2001, at 08:33 AM, Michael Everson wrote:

 Um, sorry. I had better be clearer. I need to get Oliver Corff's
 Soyombo Metafont into an outline format, without learning higher
 mathematics or downloading some enormous version of TeX which I will
 never use except for this one operation. Has anyone done this before
 and would they like to volunteer to help me out?


Well, as you know, I tend to do it by using TeX, making a big copy of 
the character and then tracing it with something like Illustrator or 
ScanFont.  And, as you know, the results are sometimes infelicitous.  
But if there aren't too many characters involved and if you don't need 
it right away, I can do it for you.  But you knew that, too.

=
John H. Jenkins
[EMAIL PROTECTED]
[EMAIL PROTECTED]
http://homepage.mac.com/jenkins/