Hello all,<div><br></div><div>I am curious about the feasibility of installing Multiple Master Fonts with fontinst for use in pdfLaTeX, in particular to make variants available for font expansion by the microtype package.</div>
<div><br></div><div>I have a firm grasp of the type tools used to generate custom instances (mmafm and mmpfb), and it appears straightforward to install MM instances using the traditional {series}{shape}{size} parameters supported by fontinst and font definition files.</div>
<div><br></div><div>What I don&#39;t see support for in fontinst is MM instances generated along the width axis for use in font expansion.</div><div><br></div><div>Following the example that Hàn Thế Thành gives in his Font Expansion with pdfTeX article, instances meant for use in font expansion have a +5, +10, etc. appended to the font name. Thus, Minion MM Roman at 12 points with 2 percent expansion is named pmnr8a12+20.pfb.</div>
<div><br></div><div>Can fontinst be used to install these MM instances for use in font expansion?</div><div><br></div><div>For reference, I have pasted the relevant passage from Thành&#39;s article below.</div><meta http-equiv="content-type" content="text/html; charset=utf-8"><div>
<br></div><div>—Christopher</div><div><br></div><div><br></div><div><br></div><div><br></div><div>= = = = =</div><div><br></div><div><div>Multiple Master Fonts </div><div><br></div><div>Only Multiple Master with a width axis can be expanded. The idea is to create a new instance with the width value increased by the expansion amount. The following example shows how to create a Multiple Master instance and a variant expanded by 20 thousandths:</div>
<div><br></div><div>mmafm --weight=400 --optical-size=12 --width=535 --output pmnr8a12.afm MinionMM.afm</div><div><br></div><div>mmafm --weight=400 --optical-size=12 --width=545.7 --output pmnr8a12+20.afm MinionMM.afm</div>
<div><br></div><div>The magic number 545.7 comes from the expression 535 × (1 + 20/1000 ), which means that we increase the width value of the base instance by 20 thousandths.</div><div><br></div><div>The PFB font files are created in a similar way. Afterwards the AFM can be converted to TFM using afm2tfm:</div>
<div>afm2tfm pmnr8a12.afm -T    </div><div>   texnansi.enc pmnr8y12.tfm </div><div><br></div><div>afm2tfm pmnr8a12+20.afm -T</div><div>   texnansi.enc pmnr8y12+20.tfm</div><div><br></div><div>Similar to Type 1 fonts, only the entry for the base font is needed in map files:</div>
<div><br></div><div>pmnr8y12 MinionMM_400_535_12_</div><div>   &lt;texnansi.enc &lt;pmnr8a12.pfb</div><div><br></div><div>Using font expansion Suppose that given a font, we know how to create expanded versions of that font. Now let us try an example:</div>
<div><br></div><div>\font\f=cmr10</div><div>\pdffontexpand \f 20 10 5 1000</div><div>\efcode\f‘\e=1000        </div><div>\f</div><div>\pdfadjustspacing=1</div><div>Some text..</div></div><div><br></div>