public interface TextUnit extends Region
Line
.
Note that space characters are typically not encoded in PDF documents; rather, they
are implicit in the spacing between the bounding boxes of adjacent TextUnits.Modifier and Type | Method and Description |
---|---|
char[] |
getCharacterSequence()
Returns a character array indicating the characters that should be rendered
for this TextUnit instead of the 'raw' character code provided by
getCharCode() . |
int |
getCharCode()
Returns the 'raw' character code used to encode this TextUnit in the source
PDF document.
|
Font |
getFont()
Returns the
Font that was in force when this textunit was outputted. |
float |
getTheta()
Returns the angle (in degrees) by which this TextUnit's baseline is rotated.
|
boolean |
isStruckThrough()
Returns true if this TextUnit is struck through.
|
boolean |
isUnderlined()
Returns true if this TextUnit is underlined.
|
int getCharCode()
character sequence
be rendered instead of the Unicode character corresponding to the
character code returned by this function.char[] getCharacterSequence()
getCharCode()
.
This function may return null, in which case the Unicode character
corresponding with the 'raw' character code should be used when rendering
this TextUnit.boolean isUnderlined()
boolean isStruckThrough()
float getTheta()