Note: This function is deprecated. Use dtFontGetMMAxisInfo instead.
This function returns the number of multiple-master base designs in the specified font.
Parameter | Description |
---|---|
engine |
Handle of the previously created Standard Engine instance. |
font_index |
Font index of the font or font instance in the Font Catalog. |
The return value represents the number of multiple-master base designs in the font referenced by font_index. If the referenced font is a single-master font, the return value is always 1. If the referenced font, however, is a multiple-master font (e.g. D-Type or Adobe Type 1) the return value is a positive number greater than 1.
For multiple-master fonts, the return value is usually 2, 4 or 8. In most cases the base designs are organized in groups of 2, where each group represents one design axis such as weight, width, optical size etc. In this case, each base design represents one extreme in the dynamic range of possible instances along the design axis. For example, if one of the design axes is width, the base designs typically represent the narrowest possible and widest possible design for this font. Virtually all Adobe Type 1 fonts are organized in this way.
Although the number of base designs in a font is usually a multiple of 2, this is not a requirement for D-Type fonts. This is because D-Type Font Engine does not see design axes but individual base designs, where each design can contribute independently in the final interpolation process.