Package com.openhtmltopdf.pdfboxout
Class PdfBoxTextRenderer
- java.lang.Object
-
- com.openhtmltopdf.pdfboxout.PdfBoxTextRenderer
-
- All Implemented Interfaces:
TextRenderer
public class PdfBoxTextRenderer extends Object implements TextRenderer
-
-
Constructor Summary
Constructors Constructor Description PdfBoxTextRenderer()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static List<PdfBoxSlowOutputDevice.FontRun>
divideIntoFontRuns(FSFont font, String str, BidiReorderer reorderer)
void
drawString(OutputDevice outputDevice, String string, float x, float y)
void
drawString(OutputDevice outputDevice, String string, float x, float y, JustificationInfo info)
float
getFontScale()
FSFontMetrics
getFSFontMetrics(FontContext context, FSFont font, String string)
int
getSmoothingLevel()
int
getWidth(FontContext context, FSFont font, String string)
static boolean
isJustificationSpace(int c)
void
setFontScale(float scale)
void
setSmoothingLevel(int level)
Deprecated.void
setSmoothingThreshold(float fontsize)
void
setup(FontContext context)
void
setup(FontContext context, BidiReorderer reorderer)
-
-
-
Method Detail
-
setup
public void setup(FontContext context, BidiReorderer reorderer)
-
drawString
public void drawString(OutputDevice outputDevice, String string, float x, float y)
- Specified by:
drawString
in interfaceTextRenderer
-
drawString
public void drawString(OutputDevice outputDevice, String string, float x, float y, JustificationInfo info)
- Specified by:
drawString
in interfaceTextRenderer
-
getFSFontMetrics
public FSFontMetrics getFSFontMetrics(FontContext context, FSFont font, String string)
- Specified by:
getFSFontMetrics
in interfaceTextRenderer
-
isJustificationSpace
public static boolean isJustificationSpace(int c)
-
divideIntoFontRuns
public static List<PdfBoxSlowOutputDevice.FontRun> divideIntoFontRuns(FSFont font, String str, BidiReorderer reorderer)
-
getWidth
public int getWidth(FontContext context, FSFont font, String string)
- Specified by:
getWidth
in interfaceTextRenderer
-
setFontScale
public void setFontScale(float scale)
- Specified by:
setFontScale
in interfaceTextRenderer
-
getFontScale
public float getFontScale()
- Specified by:
getFontScale
in interfaceTextRenderer
-
setSmoothingThreshold
public void setSmoothingThreshold(float fontsize)
- Specified by:
setSmoothingThreshold
in interfaceTextRenderer
-
getSmoothingLevel
public int getSmoothingLevel()
- Specified by:
getSmoothingLevel
in interfaceTextRenderer
-
setSmoothingLevel
@Deprecated public void setSmoothingLevel(int level)
Deprecated.- Specified by:
setSmoothingLevel
in interfaceTextRenderer
-
setup
public void setup(FontContext context)
- Specified by:
setup
in interfaceTextRenderer
-
-