Top Fields Constructors Methods
jogamp.graph.font.typecast

pack-priv Class TypecastHMetrics

extends Object
implements Metrics
Class Inheritance
All Implemented Interfaces
com.jogamp.graph.font.Font.Metrics
Imports
jogamp.graph.font.typecast.ot.table.HeadTable, .HheaTable, com.jogamp.graph.font.Font.Metrics, com.jogamp.opengl.math.geom.AABBox

Field Summary

Modifier and TypeField and Description
private final AABBox
private final TypecastFont
private final HeadTable
private final HheaTable
private final float

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public final float
getAscent(final float pixelSize)

Implements com.jogamp.graph.font.Font.Metrics.getAscent.

public final AABBox
getBBox(final AABBox
AABBox instance set to this metrics boundary w/ given pixelSize
dest
,
final float
Use pointSize * resolution for resolution correct pixel-size, see Font#getPixelSize(float, float)
pixelSize
,
final float[]
caller provided temporary 3-component vector
tmpV3
)

Implements com.jogamp.graph.font.Font.Metrics.getBBox.

public final float
public final float
public final float
public final float
getScale(final float pixelSize)

Implements com.jogamp.graph.font.Font.Metrics.getScale.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

bboxback to summary
private final AABBox bbox
fontImplback to summary
private final TypecastFont fontImpl
headTableback to summary
private final HeadTable headTable
hheaTableback to summary
private final HheaTable hheaTable
unitsPerEM_Invback to summary
private final float unitsPerEM_Inv

Constructor Detail

TypecastHMetricsback to summary
public TypecastHMetrics(final TypecastFont fontImpl)

Method Detail

getAscentback to summary
public final float getAscent(final float pixelSize)

Implements com.jogamp.graph.font.Font.Metrics.getAscent.

Annotations
@Override
getBBoxback to summary
public final AABBox getBBox(final AABBox dest, final float pixelSize, final float[] tmpV3)

Implements com.jogamp.graph.font.Font.Metrics.getBBox.

Parameters
dest:AABBox

Doc from com.jogamp.graph.font.Font.Metrics.getBBox.

AABBox instance set to this metrics boundary w/ given pixelSize

pixelSize:float

Doc from com.jogamp.graph.font.Font.Metrics.getBBox.

Use pointSize * resolution for resolution correct pixel-size, see Font#getPixelSize(float, float)

tmpV3:float[]

Doc from com.jogamp.graph.font.Font.Metrics.getBBox.

caller provided temporary 3-component vector

Returns:AABBox

Doc from com.jogamp.graph.font.Font.Metrics.getBBox.

the given and set AABBox 'dest'

Annotations
@Override
getDescentback to summary
public final float getDescent(final float pixelSize)

Implements com.jogamp.graph.font.Font.Metrics.getDescent.

Annotations
@Override
getLineGapback to summary
public final float getLineGap(final float pixelSize)

Implements com.jogamp.graph.font.Font.Metrics.getLineGap.

Annotations
@Override
getMaxExtendback to summary
public final float getMaxExtend(final float pixelSize)

Implements com.jogamp.graph.font.Font.Metrics.getMaxExtend.

Annotations
@Override
getScaleback to summary
public final float getScale(final float pixelSize)

Implements com.jogamp.graph.font.Font.Metrics.getScale.

Annotations
@Override