Class GlyphPositioningTable.DeviceTable
java.lang.Object
org.docx4j.fonts.fop.complexscripts.fonts.GlyphPositioningTable.DeviceTable
- Enclosing class:
- GlyphPositioningTable
public static class GlyphPositioningTable.DeviceTable
extends java.lang.Object
The
DeviceTable class implements a positioning device table record, comprising
adjustments to be made to scaled design units according to the scaled size.-
Constructor Summary
Constructors Constructor Description DeviceTable(int startSize, int endSize, int[] deltas)Instantiate a DeviceTable. -
Method Summary
Modifier and Type Method Description intfindAdjustment(int fontSize)Find device adjustment.int[]getDeltas()intgetEndSize()intgetStartSize()java.lang.StringtoString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
DeviceTable
public DeviceTable(int startSize, int endSize, int[] deltas)Instantiate a DeviceTable.- Parameters:
startSize- theendSize- the ending (scaled) sizedeltas- adjustments for each scaled size
-
-
Method Details
-
getStartSize
public int getStartSize()- Returns:
- the start size
-
getEndSize
public int getEndSize()- Returns:
- the end size
-
getDeltas
public int[] getDeltas()- Returns:
- the deltas
-
findAdjustment
public int findAdjustment(int fontSize)Find device adjustment. asf.todo at present, assumes that 1 device unit equals one point- Parameters:
fontSize- the font size to search for- Returns:
- an adjustment if font size matches an entry
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-