-
public interface MultipleMaster
TheMultipleMaster
interface represents Type 1 Multiple Master fonts. A particularFont
object can implement this interface.
-
-
Method Summary
Methods Modifier and Type Method and Description Font
deriveMMFont(float[] axes)
Creates a new instance of a multiple master font based on the design axis values contained in the specified array.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.float[]
getDesignAxisDefaults()
Returns an array of default design values for each axis.String[]
getDesignAxisNames()
Returns the name for each design axis.float[]
getDesignAxisRanges()
Returns an array of design limits interleaved in the form [from->to] for each axis.int
getNumDesignAxes()
Returns the number of multiple master design controls.
-
-
-
Method Detail
-
getNumDesignAxes
int getNumDesignAxes()
Returns the number of multiple master design controls. Design axes include things like width, weight and optical scaling.- Returns:
- the number of multiple master design controls
-
getDesignAxisRanges
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 bygetDesignAxisNames
.- Returns:
- an array of design limits for each axis.
-
getDesignAxisDefaults
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 bygetDesignAxisNames
.- Returns:
- an array of default design values for each axis.
-
getDesignAxisNames
String[] getDesignAxisNames()
Returns the name for each design axis. This also determines the order in which the values for each axis are returned.- Returns:
- an array containing the names of each design axis.
-
deriveMMFont
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 fromgetNumDesignAxes
and the values of the array elements must fall within limits specified bygetDesignAxesLimits
. In case of an error,null
is returned.- Parameters:
axes
- an array containing axis values- Returns:
- a
Font
object that is an instance ofMultipleMaster
and is based on the design axis values provided byaxes
.
-
deriveMMFont
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,null
is returned.- Parameters:
glyphWidths
- an array of floats representing the desired width of each glyph in font spaceavgStemWidth
- the average stem width for the overall font in font spacetypicalCapHeight
- the height of a typical upper case chartypicalXHeight
- the height of a typical lower case charitalicAngle
- the angle at which the italics lean, in degrees counterclockwise from vertical- Returns:
- a
Font
object that is an instance ofMultipleMaster
and is based on the specified metric information.
-
-
Document created the 11/06/2005, last modified the 04/03/2020
Source of the printed document:https://www.gaudry.be/en/java-api-rf-java/awt/font/MultipleMaster.html
The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.
References
These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author This site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.