public interface MultipleMaster
MultipleMaster
接口代表1型多主字体。一个特定的
Font
对象可以实现此接口。
Modifier and Type | Method and Description |
---|---|
Font |
deriveMMFont(float[] axes)
根据包含在指定数组中的设计轴值,创建一个多主字体的新实例。
|
Font |
deriveMMFont(float[] glyphWidths, float avgStemWidth, float typicalCapHeight, float typicalXHeight, float italicAngle)
创建一个基于详细度量信息的多主字体的新实例。
|
float[] |
getDesignAxisDefaults()
返回每个轴的默认设计值的数组。
|
String[] |
getDesignAxisNames()
返回每个设计轴的名称。
|
float[] |
getDesignAxisRanges()
返回设计限制的形式→交错[从]每轴阵列。
|
int |
getNumDesignAxes()
返回多个主设计控件的数量。
|
int getNumDesignAxes()
float[] getDesignAxisRanges()
getDesignAxisNames
。
float[] getDesignAxisDefaults()
getDesignAxisNames
。
String[] getDesignAxisNames()
Font deriveMMFont(float[] axes)
getNumDesignAxes
和数组元素的值必须在指定的
getDesignAxesLimits
限制。在一个错误的情况下,
null
返回。
axes
-一个数组包含轴值
Font
对象是
MultipleMaster
实例是基于所提供的
axes
设计轴值。
Font deriveMMFont(float[] glyphWidths, float avgStemWidth, float typicalCapHeight, float typicalXHeight, float italicAngle)
null
返回。
glyphWidths
-代表字体空间每个字符所需的宽度一个数组
avgStemWidth
-字体空间整体平均茎粗的字体
typicalCapHeight
-一个典型的大写字符的高度
typicalXHeight
-一个典型的小写字符的高度
italicAngle
-角度这斜体倾斜,垂直度逆时针
Font
对象是
MultipleMaster
实例是基于指定的度量信息。
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.