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)voiddrawString(OutputDevice outputDevice, String string, float x, float y)voiddrawString(OutputDevice outputDevice, String string, float x, float y, JustificationInfo info)floatgetFontScale()FSFontMetricsgetFSFontMetrics(FontContext context, FSFont font, String string)intgetSmoothingLevel()intgetWidth(FontContext context, FSFont font, String string)static booleanisJustificationSpace(int c)voidsetFontScale(float scale)voidsetSmoothingLevel(int level)Deprecated.voidsetSmoothingThreshold(float fontsize)voidsetup(FontContext context)voidsetup(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:
drawStringin interfaceTextRenderer
-
drawString
public void drawString(OutputDevice outputDevice, String string, float x, float y, JustificationInfo info)
- Specified by:
drawStringin interfaceTextRenderer
-
getFSFontMetrics
public FSFontMetrics getFSFontMetrics(FontContext context, FSFont font, String string)
- Specified by:
getFSFontMetricsin 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:
getWidthin interfaceTextRenderer
-
setFontScale
public void setFontScale(float scale)
- Specified by:
setFontScalein interfaceTextRenderer
-
getFontScale
public float getFontScale()
- Specified by:
getFontScalein interfaceTextRenderer
-
setSmoothingThreshold
public void setSmoothingThreshold(float fontsize)
- Specified by:
setSmoothingThresholdin interfaceTextRenderer
-
getSmoothingLevel
public int getSmoothingLevel()
- Specified by:
getSmoothingLevelin interfaceTextRenderer
-
setSmoothingLevel
@Deprecated public void setSmoothingLevel(int level)
Deprecated.- Specified by:
setSmoothingLevelin interfaceTextRenderer
-
setup
public void setup(FontContext context)
- Specified by:
setupin interfaceTextRenderer
-
-