public class XSLFRenderingHint extends RenderingHints.Key
| Modifier and Type | Field and Description |
|---|---|
static XSLFRenderingHint |
FONT_HANDLER
Use this object to resolve unknown / missing fonts when rendering slides
|
static XSLFRenderingHint |
GRESTORE |
static XSLFRenderingHint |
GSAVE |
static XSLFRenderingHint |
IMAGE_RENDERER
Use a custom image rendener
|
static int |
TEXT_AS_CHARACTERS
|
static int |
TEXT_AS_SHAPES
draw text via
TextLayout.draw(java.awt.Graphics2D, float, float) |
static XSLFRenderingHint |
TEXT_RENDERING_MODE
how to render text:
TEXT_AS_CHARACTERS (default) means to draw via
Graphics2D.drawString(java.text.AttributedCharacterIterator, float, float). |
| Constructor and Description |
|---|
XSLFRenderingHint(int i) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isCompatibleValue(Object val) |
equals, hashCode, intKeypublic static final XSLFRenderingHint GSAVE
public static final XSLFRenderingHint GRESTORE
public static final XSLFRenderingHint IMAGE_RENDERER
XSLFImageRendererpublic static final XSLFRenderingHint TEXT_RENDERING_MODE
TEXT_AS_CHARACTERS (default) means to draw via
Graphics2D.drawString(java.text.AttributedCharacterIterator, float, float).
This mode draws text as characters. Use it if the target graphics writes the actual
character codes instead of glyph outlines (PDFGraphics2D, SVGGraphics2D, etc.)
TEXT_AS_SHAPES means to render via
TextLayout.draw(java.awt.Graphics2D, float, float).
This mode draws glyphs as shapes and provides some advanced capabilities such as
justification and font substitution. Use it if the target graphics is an image.public static final int TEXT_AS_CHARACTERS
public static final int TEXT_AS_SHAPES
TextLayout.draw(java.awt.Graphics2D, float, float)public static final XSLFRenderingHint FONT_HANDLER
public boolean isCompatibleValue(Object val)
isCompatibleValue in class RenderingHints.KeyCopyright © 2020. All rights reserved.