Re: [NTG-context] Metafont and Context
Hallo!
Has anybody written typescripts for one of the Metafonts available at CTAN and can send me an example or two?
I've added a Metafont example to my page:
http://home.salamander.com/~wmcclain/context-help.html#newfont-mf
I don't know much about Metafont, and your comments (as always) are welcome.
In particular, I have two questions:
(1) I don't specify encoding, because I'm not sure how encoding interacts with MF. Is it even required? The typescript works without encoding references.
(2) texexec + pdftex do not generate .pk files like xdvi does. Is that an option I've missed? In the example I give I first create a .dvi version of the file and have xdvi create the .pk files, which then can be read by pdftex.
-Bill
Thank you very much for your work! Some questions about the typescript:
% Typescript for the Duerer metafont typeface. % % The ``Informal'' is a serifed variation; I assign it to % italic so that we can access both it and slanted in the same % setup. % \starttypescript [serif] [duerer] ^ no [name] her? \definefontsynonym [Duerer-Roman] [cdr10] \definefontsynonym [Duerer-Bold] [cdb10] \definefontsynonym [Duerer-Slanted] [cdsl10] \definefontsynonym [Duerer-Informal] [cdi10] \stoptypescript
\starttypescript [sans] [duerer] ^ no [name] her? \definefontsynonym [Duerer-Sans] [cdss10] \stoptypescript
\starttypescript [mono] [duerer] ^ no [name] her? \definefontsynonym [Duerer-Mono] [cdtt10] \stoptypescript
\starttypescript [serif] [duerer] [name] \definefontsynonym [Serif] [Duerer-Roman] \definefontsynonym [SerifBold] [Duerer-Bold] \definefontsynonym [SerifSlanted] [Duerer-Slanted] \definefontsynonym [SerifItalic] [Duerer-Informal] \stoptypescript
\starttypescript [sans] [duerer] [name] \definefontsynonym [Sans] [Duerer-Sans] \stoptypescript
\starttypescript [mono] [duerer] [name] \definefontsynonym [Mono] [Duerer-Mono] \stoptypescript
\starttypescript [Duerer] \definetypeface [Duerer] [rm] [serif] [duerer] [default] ^ what is this 5th parameter for? I have to set this to the fontname? \definetypeface [Duerer] [ss] [sans] [duerer] [default] \definetypeface [Duerer] [tt] [mono] [duerer] [default] \stoptypescript
Why is there no section [size] needed? What are the defaults? I see, that Duerer is designed only in one size. This is not always the case with metafonts. For example, I should can say things like: Use font with designsize 10pt for all the fontsizes lower and equal to 10pt and scale acoordingly. Use font with designsize 11pt for the fontsize 11pt. Use font with designsize 14.4pt for fontsizes from 12pt to infinity and scale them. What about encoding? For example, an OT1 font doesn't contains german umlauts, a T1 font does. By the way, there is also a typescript-section [special]. What can I do with this? I will report about my attempts about my font 'bunt' in a second mail. Gru�, Wolfgang
On Thu, 22 May 2003 01:05:56 +0200
"Wolfgang Werners-Lucchini"
Some questions about the typescript:
We've reached the limits of my knowledge. I'll have to dig deeper before I can be of any help. There is quite a bit I don't yet understand about fonts in tex and Context.
\starttypescript [serif] [duerer] ^ no [name] her?
In other examples an encoding goes here, but it is just a key for finding the typescript. This example works without specifying an encoding.
\starttypescript [Duerer] \definetypeface [Duerer] [rm] [serif] [duerer] [default]
^
what is this 5th parameter for? I have to set this to the fontname?
It identifies the typescript for the size information. The typescript to be found is [#3][#5][default], which in this case is [serif][default][size]. There is a match for this in type-siz.tex. Note: this is how I have explained it on my help page, but I am not sure it is correct. I've not been able to substitute other size typescripts, so I must be missing something. I don't undestand \definebodyfont or the size mechanism at all.
Why is there no section [size] needed? What are the defaults?
As above, the default size is [serif][default][size] in type-siz.tex (I think).
What about encoding? For example, an OT1 font doesn't contains german umlauts, a T1 font does.
I'm puzzled in this case. A tfm is generated for a specific encoding. Multiple encodings for the same font would require multiple tfm's. Looking at one of my type1 fonts, I see the encoding I used when installing it: tftopl texnansi-sar.tfm | grep CODINGSCHEME (CODINGSCHEME TEXNANSIENCODING) This makes sense, because I used texnansi.enc when installing. But when I look at Metafont Duerer: tftopl cdr10.tfm | grep CODINGSCHEME (CODINGSCHEME ASCII CAPS AND DIGITS) What encoding is that, and how would I create a tfm with a different encoding?
By the way, there is also a typescript-section [special]. What can I do with this?
I don't know; there are a few examples dealing with math mode in type-spe.tex.
I will report about my attempts about my font 'bunt' in a second mail.
I've never dealt with multiple design sizes (and don't understand single design sizes yet). If you will send me your "bunt" font files I'll use them for testing, although it may take some time before I can get to it. -Bill -- Sattre Press Curiosities of the Sky http://sattre-press.com/ by Garrett Serviss info@sattre-press.com http://csky.sattre-press.com/
participants (2)
-
Bill McClain
-
Wolfgang Werners-Lucchini