MultipleMaster interface represents Type 1
Multiple Master fonts.
A particular Font object can implement this interface.
| Modifier and Type | Method and Description |
|---|---|
| public Font | Returns: aFont object that is an instance of
MultipleMaster and is based on the design axis values
provided by axes.an array containing axis values axes)Creates a new instance of a multiple master font based on the design axis values contained in the specified array. |
| public Font | Returns: aFont object that is an instance of
MultipleMaster and is based on the specified metric
information.an array of floats representing the desired width
of each glyph in font space glyphWidths, float the average stem width for the overall font in
font space avgStemWidth, float the height of a typical upper case char typicalCapHeight, float the height of a typical lower case char typicalXHeight, float the angle at which the italics lean, in degrees
counterclockwise from vertical italicAngle)Creates a new instance of a multiple master font based on detailed metric information. |
| public float[] | Returns: an array of default design values for each axis.Returns an array of default design values for each axis. |
| public String[] | Returns: an array containing the names of each design axis.Returns the name for each design axis. |
| public float[] | Returns: an array of design limits for each axis.Returns an array of design limits interleaved in the form [from→to] for each axis. |
| public int | Returns: the number of multiple master design controlsReturns the number of multiple master design controls. |
| deriveMMFont | back to summary |
|---|---|
| public Font deriveMMFont(float[] axes) Creates a new instance of a multiple master font based on the design
axis values contained in the specified array. The size of the array
must correspond to the value returned from
| |
| deriveMMFont | back to summary |
|---|---|
| public Font deriveMMFont(float[] glyphWidths, float avgStemWidth, float typicalCapHeight, float typicalXHeight, float italicAngle) Creates a new instance of a multiple master font based on detailed metric
information. In case of an error,
| |
| getDesignAxisDefaults | back to summary |
|---|---|
| public float[] getDesignAxisDefaults() Returns an array of default design values for each axis. For example,
the default value for weight could be 1.6. The values are returned
in the same order returned by
| |
| getDesignAxisNames | back to summary |
|---|---|
| public String[] getDesignAxisNames() Returns the name for each design axis. This also determines the order in which the values for each axis are returned.
| |
| getDesignAxisRanges | back to summary |
|---|---|
| public float[] getDesignAxisRanges() Returns an array of design limits interleaved in the form [from→to]
for each axis. For example,
design limits for weight could be from 0.1 to 1.0. The values are
returned in the same order returned by
| |
| getNumDesignAxes | back to summary |
|---|---|
| public int getNumDesignAxes() Returns the number of multiple master design controls. Design axes include things like width, weight and optical scaling.
| |