public class Java2DTextRenderer extends Object implements TextRenderer
| Modifier and Type | Field and Description |
|---|---|
protected static int |
ANTI_ALIAS_FONT_SIZE_MIN |
protected Object |
antiAliasRenderingHint |
protected Object |
fractionalFontMetricsHint |
| Constructor and Description |
|---|
Java2DTextRenderer() |
| Modifier and Type | Method and Description |
|---|---|
void |
drawString(OutputDevice outputDevice,
String string,
float x,
float y) |
void |
drawString(OutputDevice outputDevice,
String string,
float x,
float y,
JustificationInfo info)
Draws a justified string.
|
protected int |
getAntiAliasMinFontSize() |
FSFontMetrics |
getFSFontMetrics(FontContext fc,
FSFont font,
String string) |
float[] |
getGlyphPositions(OutputDevice outputDevice,
FSFont font,
String text)
This method gets glyph positions for purposes of selecting text.
|
Object |
getRenderingHints()
If anti-alias text is enabled, the value from RenderingHints to use for AA smoothing in Java2D.
|
int |
getWidth(FontContext fc,
FSFont font,
String string) |
void |
setup(FontContext fontContext,
BidiReorderer bidiReorderer) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetEffectivePrintableStringprotected static final int ANTI_ALIAS_FONT_SIZE_MIN
protected final Object antiAliasRenderingHint
protected final Object fractionalFontMetricsHint
protected int getAntiAliasMinFontSize()
public void drawString(OutputDevice outputDevice, String string, float x, float y)
drawString in interface TextRendererpublic void drawString(OutputDevice outputDevice, String string, float x, float y, JustificationInfo info)
drawString in interface TextRendererpublic void setup(FontContext fontContext, BidiReorderer bidiReorderer)
public FSFontMetrics getFSFontMetrics(FontContext fc, FSFont font, String string)
getFSFontMetrics in interface TextRendererpublic int getWidth(FontContext fc, FSFont font, String string)
getWidth in interface TextRendererpublic Object getRenderingHints()
RenderingHints.VALUE_TEXT_ANTIALIAS_ON.public float[] getGlyphPositions(OutputDevice outputDevice, FSFont font, String text)
Copyright © 2004–2025. All rights reserved.