I would like to use a Multiple Master font with a width axis for the HZ-program (=Herman Zapf Programm, equivalent to the microtype-package of LaTeX)
In standard configuration, ConTeXt (and microtype) stretches fonts horizontally to fit into a line. I want ConTeXt not to stretch the font, but to use different font files with different widths, which I provide. One font file for each width.
What do I have to do to make ConTeXt use my Open Type Fonts instead of stretching?
Multiple Master font for you to test
For this first test, I created 21 instances of a multiple master font (Adobe Serif, comes with Adobe Reader for free) with different widths. The instances are called
AdobeSerifMM_400_700.otf. The first number in each filename, 400, is the weight, which is constant. The last number is the width, going from 500 (3-7% narrower) over 600 (normal) to 700 (3-7% wider) in +10-steps.
I suppose, I am not allowed to share the fonts, but I can share the way to create them:
find and copy
zy______.*files from Adobe Reader folder
create afm-file with
pfm2afm.exe zy______.pfmfrom the pfm2afm-package from ctan
create instances, running width from 500 to 700
mmpfb --weight=400 --width=600 --precision=0 ZY______.PFB > AdobeSerifMM_400_600.pfbwith LCDF-Typetools (http://www.lcdf.org/type/)
create empty kerning tables
t1rawafm.exe < AdobeSerifMM_400_600.pfb > AdobeSerifMM_400_600.afm
convert these Type1-fonts to OTF-format. I used http://www.freefontconverter.com/. For the future I plan using offline tools like this: http://www.adobe.com/devnet/opentype/afdko/topic_overview.html
now you have Open Type Font Instances of the same font with different widths
FYI: Here are four PDF-files with the four extreme instances of AdobeSerifMM. https://www.dropbox.com/sh/dpi4ok0yl17tchn/4hWB2LwJ9X