public static class GlyphPositioningTable.Value
extends java.lang.Object
Value
class implements a positioning value record, comprising placement
and advancement information in X and Y axes, and optionally including device data used to
perform device (grid-fitted) specific fine grain adjustments.Modifier and Type | Field and Description |
---|---|
static int |
IDX_X_ADVANCE
X_ADVANCE value index (within adjustments arrays)
|
static int |
IDX_X_PLACEMENT
X_PLACEMENT value index (within adjustments arrays)
|
static int |
IDX_Y_ADVANCE
Y_ADVANCE value index (within adjustments arrays)
|
static int |
IDX_Y_PLACEMENT
Y_PLACEMENT value index (within adjustments arrays)
|
static int |
X_ADVANCE
X_ADVANCE value format flag
|
static int |
X_ADVANCE_DEVICE
X_ADVANCE_DEVICE value format flag
|
static int |
X_PLACEMENT
X_PLACEMENT value format flag
|
static int |
X_PLACEMENT_DEVICE
X_PLACEMENT_DEVICE value format flag
|
static int |
Y_ADVANCE
Y_ADVANCE value format flag
|
static int |
Y_ADVANCE_DEVICE
Y_ADVANCE_DEVICE value format flag
|
static int |
Y_PLACEMENT
Y_PLACEMENT value format flag
|
static int |
Y_PLACEMENT_DEVICE
Y_PLACEMENT_DEVICE value format flag
|
Constructor and Description |
---|
Value(int xPlacement,
int yPlacement,
int xAdvance,
int yAdvance,
GlyphPositioningTable.DeviceTable xPlaDevice,
GlyphPositioningTable.DeviceTable yPlaDevice,
GlyphPositioningTable.DeviceTable xAdvDevice,
GlyphPositioningTable.DeviceTable yAdvDevice)
Instantiate a Value.
|
Modifier and Type | Method and Description |
---|---|
boolean |
adjust(int[] adjustments,
int fontSize)
Apply value to adjustments using font size for device table adjustments.
|
void |
adjust(int xPlacement,
int yPlacement,
int xAdvance,
int yAdvance)
Apply value to specific adjustments to without use of device table adjustments.
|
int |
getXAdvance() |
GlyphPositioningTable.DeviceTable |
getXAdvDevice() |
int |
getXPlacement() |
GlyphPositioningTable.DeviceTable |
getXPlaDevice() |
int |
getYAdvance() |
GlyphPositioningTable.DeviceTable |
getYAdvDevice() |
int |
getYPlacement() |
GlyphPositioningTable.DeviceTable |
getYPlaDevice() |
java.lang.String |
toString() |
public static final int X_PLACEMENT
public static final int Y_PLACEMENT
public static final int X_ADVANCE
public static final int Y_ADVANCE
public static final int X_PLACEMENT_DEVICE
public static final int Y_PLACEMENT_DEVICE
public static final int X_ADVANCE_DEVICE
public static final int Y_ADVANCE_DEVICE
public static final int IDX_X_PLACEMENT
public static final int IDX_Y_PLACEMENT
public static final int IDX_X_ADVANCE
public static final int IDX_Y_ADVANCE
public Value(int xPlacement, int yPlacement, int xAdvance, int yAdvance, GlyphPositioningTable.DeviceTable xPlaDevice, GlyphPositioningTable.DeviceTable yPlaDevice, GlyphPositioningTable.DeviceTable xAdvDevice, GlyphPositioningTable.DeviceTable yAdvDevice)
xPlacement
- the x placement or zeroyPlacement
- the y placement or zeroxAdvance
- the x advance or zeroyAdvance
- the y advance or zeroxPlaDevice
- the x placement device table or nullyPlaDevice
- the y placement device table or nullxAdvDevice
- the x advance device table or nullyAdvDevice
- the y advance device table or nullpublic int getXPlacement()
public int getYPlacement()
public int getXAdvance()
public int getYAdvance()
public GlyphPositioningTable.DeviceTable getXPlaDevice()
public GlyphPositioningTable.DeviceTable getYPlaDevice()
public GlyphPositioningTable.DeviceTable getXAdvDevice()
public GlyphPositioningTable.DeviceTable getYAdvDevice()
public void adjust(int xPlacement, int yPlacement, int xAdvance, int yAdvance)
xPlacement
- the x placement or zeroyPlacement
- the y placement or zeroxAdvance
- the x advance or zeroyAdvance
- the y advance or zeropublic boolean adjust(int[] adjustments, int fontSize)
adjustments
- array of four integers containing X,Y placement and X,Y advance adjustmentsfontSize
- font size for device table adjustmentspublic java.lang.String toString()
toString
in class java.lang.Object
Copyright 1999-2017 The Apache Software Foundation. All Rights Reserved.