Modifier and Type | Field and Description |
---|---|
protected HashMap |
attributes
Metric attributes.
|
protected BaseFont |
baseFont |
protected boolean |
changeLeading
Indicates if the height and offset of the Image has to be taken into account
|
protected String |
encoding
The encoding.
|
protected com.lowagie.text.pdf.PdfFont |
font
The font for this
PdfChunk . |
protected Image |
image
The image in this
PdfChunk , if it has one |
protected boolean |
newlineSplit
true if the chunk split was cause by a newline. |
protected HashMap |
noStroke
Non metric attributes.
|
protected float |
offsetX
The offset in the x direction for the image
|
protected float |
offsetY
The offset in the y direction for the image
|
protected SplitCharacter |
splitCharacter |
protected String |
value
The value of this object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
changeLeading() |
float |
getTextRise()
Gets the text displacement relative to the baseline.
|
int |
getUnicodeEquivalent(int c)
Gets the Unicode equivalent to a CID.
|
float |
getWidthCorrected(float charSpacing,
float wordSpacing)
Gets the width of the
PdfChunk taking into account the
extra character and word spacing. |
protected int |
getWord(String text,
int start) |
boolean |
isNewlineSplit()
Checks if the
PdfChunk split was caused by a newline. |
static boolean |
noPrint(int c) |
String |
toString() |
float |
trimFirstSpace() |
float |
trimLastSpace()
Trims the last space.
|
protected String value
protected String encoding
protected com.lowagie.text.pdf.PdfFont font
PdfChunk
.protected BaseFont baseFont
protected SplitCharacter splitCharacter
protected HashMap attributes
This attributes require the measurement of characters widths when rendering such as underline.
protected HashMap noStroke
This attributes do not require the measurement of characters widths when rendering such as Color.
protected boolean newlineSplit
true
if the chunk split was cause by a newline.protected Image image
PdfChunk
, if it has oneprotected float offsetX
protected float offsetY
protected boolean changeLeading
public int getUnicodeEquivalent(int c)
c
- the CID codeprotected int getWord(String text, int start)
public boolean isNewlineSplit()
PdfChunk
split was caused by a newline.true
if the PdfChunk
split was caused by a newline.public float getWidthCorrected(float charSpacing, float wordSpacing)
PdfChunk
taking into account the
extra character and word spacing.charSpacing
- the extra character spacingwordSpacing
- the extra word spacingpublic float getTextRise()
public float trimLastSpace()
public float trimFirstSpace()
public String toString()
toString
in class Object
Object.toString()
public boolean changeLeading()
public static boolean noPrint(int c)
Copyright © 2018. All rights reserved.