| Modifier and Type | Field and Description |
|---|---|
| private final IntObjectHashMap | |
| private final int | |
| private final CmapFormat | |
| pack-priv static final boolean | |
| pack-priv final OTFont | |
| private final TypecastHMetrics | |
| private final float[] | |
| private static final Vertex. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public float | getAdvanceWidth(final int glyphID, final float
Use pixelSize)pointSize * resolution for resolution correct pixel-size, see getPixelSize(float, float)Implements com. |
| public StringBuilder | getAllNames(final StringBuilder sb, final String separator)
Implements com. |
| public StringBuilder | getFullFamilyName(StringBuilder sb)
Implements com. |
| public Font. | |
| public float | getLineHeight(final float
Use pixelSize)pointSize * resolution for resolution correct pixel-size, see getPixelSize(float, float)Implements com. |
| public AABBox | getMetricBounds(final CharSequence
string text string, final float Use pixelSize)pointSize * resolution for resolution correct pixel-size, see getPixelSize(float, float)Implements com. |
| public float | getMetricHeight(final CharSequence string, final float
Use pixelSize, final AABBox tmp)pointSize * resolution for resolution correct pixel-size, see getPixelSize(float, float)Implements com. |
| public final Font. | |
| public float | getMetricWidth(final CharSequence string, final float
Use pixelSize)pointSize * resolution for resolution correct pixel-size, see getPixelSize(float, float)Implements com. |
| public StringBuilder | |
| public String | |
| public final int | |
| public final float | getPixelSize(final float
in point-per-inch fontSize, final float display resolution in dots-per-inch resolution)Implements com.
Font Scale Formula:
inch: 25.4 mm
pointSize: [point] = [1/72 inch]
[1] Scale := pointSize * resolution / ( 72 points per inch * units_per_em )
[2] PixelSize := pointSize * resolution / ( 72 points per inch )
[3] Scale := PixelSize / units_per_em
|
| public AABBox | getPointsBounds(final AffineTransform
optional given transform transform, final CharSequence string text string, final float Use pixelSize, final AffineTransform pointSize * resolution for resolution correct pixel-size, see getPixelSize(float, float)temporary AffineTransform storage, mandatory temp1, final AffineTransform temporary AffineTransform storage, mandatory temp2)Implements com. |
| public boolean | |
| public String | toString()
Overrides java. Implements com. getFullFamilyName()
|
| char2Glyph | back to summary |
|---|---|
| private final IntObjectHashMap char2Glyph | |
| cmapentries | back to summary |
|---|---|
| private final int cmapentries | |
| cmapFormat | back to summary |
|---|---|
| private final CmapFormat cmapFormat | |
| DEBUG | back to summary |
|---|---|
| pack-priv static final boolean DEBUG | |
| font | back to summary |
|---|---|
| pack-priv final OTFont font | |
| metrics | back to summary |
|---|---|
| private final TypecastHMetrics metrics | |
| tmpV3 | back to summary |
|---|---|
| private final float[] tmpV3 | |
| vertexFactory | back to summary |
|---|---|
| private static final Vertex. | |
| TypecastFont | back to summary |
|---|---|
| public TypecastFont(final OTFontCollection fontset) | |
| getAdvanceWidth | back to summary |
|---|---|
| public float getAdvanceWidth(final int glyphID, final float pixelSize) Implements com.
| |
| getAllNames | back to summary |
|---|---|
| public StringBuilder getAllNames(final StringBuilder sb, final String separator) Implements com.
| |
| getFullFamilyName | back to summary |
|---|---|
| public StringBuilder getFullFamilyName(StringBuilder sb) Implements com. Doc from com. Shall return the family and subfamily name, separated a dash.
Example: "
| |
| getGlyph | back to summary |
|---|---|
| public Font. Implements com.
| |
| getLineHeight | back to summary |
|---|---|
| public float getLineHeight(final float pixelSize) Implements com.
| |
| getMetricBounds | back to summary |
|---|---|
| public AABBox getMetricBounds(final CharSequence string, final float pixelSize) Implements com. Doc from com. Return the layout bounding box as computed by each glyph's metrics. The result is not pixel correct, bit reflects layout specific metrics.
See
| |
| getMetricHeight | back to summary |
|---|---|
| public float getMetricHeight(final CharSequence string, final float pixelSize, final AABBox tmp) Implements com.
| |
| getMetrics | back to summary |
|---|---|
| public final Font. Implements com.
| |
| getMetricWidth | back to summary |
|---|---|
| public float getMetricWidth(final CharSequence string, final float pixelSize) Implements com.
| |
| getName | back to summary |
|---|---|
| public StringBuilder getName(final StringBuilder sb, final int nameIndex) Implements com.
| |
| getName | back to summary |
|---|---|
| public String getName(final int nameIndex) Implements com.
| |
| getNumGlyphs | back to summary |
|---|---|
| public final int getNumGlyphs() Implements com.
| |
| getPixelSize | back to summary |
|---|---|
| public final float getPixelSize(final float fontSize, final float resolution) Implements com. Doc from com.
Font Scale Formula:
inch: 25.4 mm
pointSize: [point] = [1/72 inch]
[1] Scale := pointSize * resolution / ( 72 points per inch * units_per_em )
[2] PixelSize := pointSize * resolution / ( 72 points per inch )
[3] Scale := PixelSize / units_per_em
| |
| getPointsBounds | back to summary |
|---|---|
| public AABBox getPointsBounds(final AffineTransform transform, final CharSequence string, final float pixelSize, final AffineTransform temp1, final AffineTransform temp2) Implements com. Doc from com. Return the bounding box by taking each glyph's point-based bounding box into account.
| |
| isPrintableChar | back to summary |
|---|---|
| public boolean isPrintableChar(final char c) Implements com.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Implements com. Doc from com. Shall return
| |