TrueType Font Specification:
TrueType Font Table Introduction:
Misc.:
Rasterization https://freddie.witherden.org/pages/font-rasterisation/http://walon.org/pub/ttf/ttf_glyphs.htm| Modifier and Type | Class and Description |
|---|---|
| public static interface | Font.
Glyph for font http://developer.apple.com/textfonts/TTRefMan/RM06/Chap6cmap.html http://developer.apple.com/textfonts/TTRefMan/RM06/Chap6glyf.html http://www.microsoft.com/typography/otspec/glyf.htm |
| public static interface | Font.
Metrics for font Depending on the font's direction, horizontal or vertical, the following tables shall be used: Vertical http://developer.apple.com/fonts/TTRefMan/RM06/Chap6vhea.html Horizontal http://developer.apple.com/fonts/TTRefMan/RM06/Chap6hhea.html |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | NAME_COPYRIGHT
font name indices for name table |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int |
| 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)
|
| public StringBuilder | |
| public StringBuilder | getFullFamilyName(final StringBuilder buffer)
Shall return the family and subfamily name, separated a dash. |
| public Font. | |
| public float | getLineHeight(final float
Use pixelSize)pointSize * resolution for resolution correct pixel-size, see getPixelSize(float, float)
|
| public AABBox | getMetricBounds(final CharSequence
string text string, final float Use pixelSize)pointSize * resolution for resolution correct pixel-size, see getPixelSize(float, float)Return the layout bounding box as computed by each glyph's metrics. |
| public float | getMetricHeight(final CharSequence string, final float
Use pixelSize, final AABBox tmp)pointSize * resolution for resolution correct pixel-size, see getPixelSize(float, float)
|
| public Font. | |
| public float | getMetricWidth(final CharSequence string, final float
Use pixelSize)pointSize * resolution for resolution correct pixel-size, see getPixelSize(float, float)
|
| public String | |
| public StringBuilder | |
| public int | |
| public float | Returns: pixel-per-inch, pixelSize scale factor for font operations.in point-per-inch fontSize, final float display resolution in dots-per-inch resolution)
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)Return the bounding box by taking each glyph's point-based bounding box into account. |
| public boolean | |
| public String |
| NAME_COPYRIGHT | back to summary |
|---|---|
| public static final int NAME_COPYRIGHT font name indices for name table | |
| NAME_DESIGNER | back to summary |
|---|---|
| public static final int NAME_DESIGNER | |
| NAME_FAMILY | back to summary |
|---|---|
| public static final int NAME_FAMILY | |
| NAME_FULLNAME | back to summary |
|---|---|
| public static final int NAME_FULLNAME | |
| NAME_MANUFACTURER | back to summary |
|---|---|
| public static final int NAME_MANUFACTURER | |
| NAME_SUBFAMILY | back to summary |
|---|---|
| public static final int NAME_SUBFAMILY | |
| NAME_UNIQUNAME | back to summary |
|---|---|
| public static final int NAME_UNIQUNAME | |
| NAME_VERSION | back to summary |
|---|---|
| public static final int NAME_VERSION | |
| getAdvanceWidth | back to summary |
|---|---|
public float getAdvanceWidth(final int glyphID, final float pixelSize)
| |
| getAllNames | back to summary |
|---|---|
| public StringBuilder getAllNames(final StringBuilder string, final String separator) | |
| getFullFamilyName | back to summary |
|---|---|
| public StringBuilder getFullFamilyName(final StringBuilder buffer) Shall return the family and subfamily name, separated a dash.
Example: " | |
| getGlyph | back to summary |
|---|---|
| public Font. | |
| getLineHeight | back to summary |
|---|---|
public float getLineHeight(final float pixelSize)
| |
| getMetricBounds | back to summary |
|---|---|
| public AABBox getMetricBounds(final CharSequence string, final float pixelSize) 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)
| |
| getMetrics | back to summary |
|---|---|
| public Font. | |
| getMetricWidth | back to summary |
|---|---|
public float getMetricWidth(final CharSequence string, final float pixelSize)
| |
| getName | back to summary |
|---|---|
| public String getName(final int nameIndex) | |
| getName | back to summary |
|---|---|
| public StringBuilder getName(final StringBuilder string, final int nameIndex) | |
| getNumGlyphs | back to summary |
|---|---|
| public int getNumGlyphs() | |
| getPixelSize | back to summary |
|---|---|
public float getPixelSize(final float fontSize, final float resolution)
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) 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) | |
| toString | back to summary |
|---|---|
| public String toString() Shall return
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | |
| public static final int | |
| public static final int |
| Modifier and Type | Method and Description |
|---|---|
| public float | getAdvance(final float
Use pixelSize, boolean useFrationalMetrics)pointSize * resolution for resolution correct pixel-size, see Font#getPixelSize(float, float)
|
| public AABBox | |
| public AABBox | Returns: the given and set AABBox 'dest'AABBox instance set to this metrics boundary w/ given pixelSize dest, final float Use pixelSize, float[] pointSize * resolution for resolution correct pixel-size, see Font#getPixelSize(float, float)caller provided temporary 3-component vector tmpV3)
|
| public Font | |
| public short | |
| public float | getScale(final float
Use pixelSize)pointSize * resolution for resolution correct pixel-size, see Font#getPixelSize(float, float)
|
| public OutlineShape | |
| public char | |
| public int |
| ID_CR | back to summary |
|---|---|
| public static final int ID_CR | |
| ID_SPACE | back to summary |
|---|---|
| public static final int ID_SPACE | |
| ID_UNKNOWN | back to summary |
|---|---|
| public static final int ID_UNKNOWN | |
| getAdvance | back to summary |
|---|---|
public float getAdvance(final float pixelSize, boolean useFrationalMetrics)
| |
| getBBox | back to summary |
|---|---|
| public AABBox getBBox() | |
| getBBox | back to summary |
|---|---|
public AABBox getBBox(final AABBox dest, final float pixelSize, float[] tmpV3)
| |
| getFont | back to summary |
|---|---|
| public Font getFont() | |
| getID | back to summary |
|---|---|
| public short getID() | |
| getScale | back to summary |
|---|---|
public float getScale(final float pixelSize)
| |
| getShape | back to summary |
|---|---|
| public OutlineShape getShape() | |
| getSymbol | back to summary |
|---|---|
| public char getSymbol() | |
| hashCode | back to summary |
|---|---|
| public int hashCode() | |
| Modifier and Type | Method and Description |
|---|---|
| public float | |
| public AABBox | Returns: the given and set AABBox 'dest'AABBox instance set to this metrics boundary w/ given pixelSize dest, final float Use pixelSize, final float[] pointSize * resolution for resolution correct pixel-size, see Font#getPixelSize(float, float)caller provided temporary 3-component vector tmpV3)
|
| public float | |
| public float | |
| public float | |
| public float |
| getAscent | back to summary |
|---|---|
| public float getAscent(final float pixelSize) | |
| getBBox | back to summary |
|---|---|
public AABBox getBBox(final AABBox dest, final float pixelSize, final float[] tmpV3)
| |
| getDescent | back to summary |
|---|---|
| public float getDescent(final float pixelSize) | |
| getLineGap | back to summary |
|---|---|
| public float getLineGap(final float pixelSize) | |
| getMaxExtend | back to summary |
|---|---|
| public float getMaxExtend(final float pixelSize) | |
| getScale | back to summary |
|---|---|
| public float getScale(final float pixelSize) | |