sun.java2d.loops.FontInfo Java Examples
The following examples show how to use
sun.java2d.loops.FontInfo.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: GlyphListPipe.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
public void drawGlyphVector(SunGraphics2D sg2d, GlyphVector gv, float x, float y) { FontRenderContext frc = gv.getFontRenderContext(); FontInfo info = sg2d.getGVFontInfo(gv.getFont(), frc); if (info.pixelHeight > OutlineTextRenderer.THRESHHOLD) { SurfaceData.outlineTextRenderer.drawGlyphVector(sg2d, gv, x, y); return; } if (sg2d.transformState >= SunGraphics2D.TRANSFORM_TRANSLATESCALE) { double origin[] = {x, y}; sg2d.transform.transform(origin, 0, origin, 0, 1); x = (float) origin[0]; y = (float) origin[1]; } else { x += sg2d.transX; // don't use the glyph info origin, already in gv. y += sg2d.transY; } GlyphList gl = GlyphList.getInstance(); gl.setFromGlyphVector(info, gv, x, y); drawGlyphList(sg2d, gl, info.aaHint); gl.dispose(); }
Example #2
Source File: GlyphList.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
public boolean setFromChars(FontInfo info, char[] chars, int off, int alen, float x, float y) { this.x = x; this.y = y; this.strikelist = info.fontStrike; this.lcdRGBOrder = info.lcdRGBOrder; this.lcdSubPixPos = info.lcdSubPixPos; len = alen; if (alen < 0) { len = 0; } else { len = alen; } ensureCapacity(len); System.arraycopy(chars, off, chData, 0, len); return mapChars(info, len); }
Example #3
Source File: GlyphList.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
public boolean setFromChars(FontInfo info, char[] chars, int off, int alen, float x, float y) { this.x = x; this.y = y; this.strikelist = info.fontStrike; this.lcdRGBOrder = info.lcdRGBOrder; this.lcdSubPixPos = info.lcdSubPixPos; len = alen; if (alen < 0) { len = 0; } else { len = alen; } ensureCapacity(len); System.arraycopy(chars, off, chData, 0, len); return mapChars(info, len); }
Example #4
Source File: X11TextRenderer.java From dragonwell8_jdk with GNU General Public License v2.0 | 6 votes |
public void drawGlyphVector(SunGraphics2D sg2d, GlyphVector g, float x, float y) { FontRenderContext frc = g.getFontRenderContext(); FontInfo info = sg2d.getGVFontInfo(g.getFont(), frc); switch (info.aaHint) { case SunHints.INTVAL_TEXT_ANTIALIAS_OFF: super.drawGlyphVector(sg2d, g, x, y); return; case SunHints.INTVAL_TEXT_ANTIALIAS_ON: sg2d.surfaceData.aaTextRenderer.drawGlyphVector(sg2d, g, x, y); return; case SunHints.INTVAL_TEXT_ANTIALIAS_LCD_HRGB: case SunHints.INTVAL_TEXT_ANTIALIAS_LCD_VRGB: sg2d.surfaceData.lcdTextRenderer.drawGlyphVector(sg2d, g, x, y); return; default: } }
Example #5
Source File: X11TextRenderer.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
public void drawGlyphVector(SunGraphics2D sg2d, GlyphVector g, float x, float y) { FontRenderContext frc = g.getFontRenderContext(); FontInfo info = sg2d.getGVFontInfo(g.getFont(), frc); switch (info.aaHint) { case SunHints.INTVAL_TEXT_ANTIALIAS_OFF: super.drawGlyphVector(sg2d, g, x, y); return; case SunHints.INTVAL_TEXT_ANTIALIAS_ON: sg2d.surfaceData.aaTextRenderer.drawGlyphVector(sg2d, g, x, y); return; case SunHints.INTVAL_TEXT_ANTIALIAS_LCD_HRGB: case SunHints.INTVAL_TEXT_ANTIALIAS_LCD_VRGB: sg2d.surfaceData.lcdTextRenderer.drawGlyphVector(sg2d, g, x, y); return; default: } }
Example #6
Source File: GlyphListPipe.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
public void drawGlyphVector(SunGraphics2D sg2d, GlyphVector gv, float x, float y) { FontRenderContext frc = gv.getFontRenderContext(); FontInfo info = sg2d.getGVFontInfo(gv.getFont(), frc); if (info.pixelHeight > OutlineTextRenderer.THRESHHOLD) { SurfaceData.outlineTextRenderer.drawGlyphVector(sg2d, gv, x, y); return; } if (sg2d.transformState >= SunGraphics2D.TRANSFORM_TRANSLATESCALE) { double origin[] = {x, y}; sg2d.transform.transform(origin, 0, origin, 0, 1); x = (float) origin[0]; y = (float) origin[1]; } else { x += sg2d.transX; // don't use the glyph info origin, already in gv. y += sg2d.transY; } GlyphList gl = GlyphList.getInstance(); gl.setFromGlyphVector(info, gv, x, y); drawGlyphList(sg2d, gl, info.aaHint); gl.dispose(); }
Example #7
Source File: GlyphList.java From dragonwell8_jdk with GNU General Public License v2.0 | 6 votes |
public void setFromGlyphVector(FontInfo info, GlyphVector gv, float x, float y) { this.x = x; this.y = y; this.lcdRGBOrder = info.lcdRGBOrder; this.lcdSubPixPos = info.lcdSubPixPos; /* A GV may be rendered in different Graphics. It is possible it is * used for one case where LCD text is available, and another where * it is not. Pass in the "info". to ensure get a suitable one. */ StandardGlyphVector sgv = StandardGlyphVector.getStandardGV(gv, info); // call before ensureCapacity :- usePositions = sgv.needsPositions(info.devTx); len = sgv.getNumGlyphs(); ensureCapacity(len); strikelist = sgv.setupGlyphImages(images, usePositions ? positions : null, info.devTx); glyphindex = -1; }
Example #8
Source File: GlyphList.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
public void setFromGlyphVector(FontInfo info, GlyphVector gv, float x, float y) { this.x = x; this.y = y; this.lcdRGBOrder = info.lcdRGBOrder; this.lcdSubPixPos = info.lcdSubPixPos; /* A GV may be rendered in different Graphics. It is possible it is * used for one case where LCD text is available, and another where * it is not. Pass in the "info". to ensure get a suitable one. */ StandardGlyphVector sgv = StandardGlyphVector.getStandardGV(gv, info); // call before ensureCapacity :- usePositions = sgv.needsPositions(info.devTx); len = sgv.getNumGlyphs(); ensureCapacity(len); strikelist = sgv.setupGlyphImages(images, usePositions ? positions : null, info.devTx); glyphindex = -1; }
Example #9
Source File: GlyphList.java From dragonwell8_jdk with GNU General Public License v2.0 | 6 votes |
public boolean setFromChars(FontInfo info, char[] chars, int off, int alen, float x, float y) { this.x = x; this.y = y; this.strikelist = info.fontStrike; this.lcdRGBOrder = info.lcdRGBOrder; this.lcdSubPixPos = info.lcdSubPixPos; len = alen; if (alen < 0) { len = 0; } else { len = alen; } ensureCapacity(len); System.arraycopy(chars, off, chData, 0, len); return mapChars(info, len); }
Example #10
Source File: X11TextRenderer.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
public void drawGlyphVector(SunGraphics2D sg2d, GlyphVector g, float x, float y) { FontRenderContext frc = g.getFontRenderContext(); FontInfo info = sg2d.getGVFontInfo(g.getFont(), frc); switch (info.aaHint) { case SunHints.INTVAL_TEXT_ANTIALIAS_OFF: super.drawGlyphVector(sg2d, g, x, y); return; case SunHints.INTVAL_TEXT_ANTIALIAS_ON: SurfaceData.aaTextRenderer.drawGlyphVector(sg2d, g, x, y); return; case SunHints.INTVAL_TEXT_ANTIALIAS_LCD_HRGB: case SunHints.INTVAL_TEXT_ANTIALIAS_LCD_VRGB: SurfaceData.lcdTextRenderer.drawGlyphVector(sg2d, g, x, y); return; default: } }
Example #11
Source File: GlyphListPipe.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
public void drawGlyphVector(SunGraphics2D sg2d, GlyphVector gv, float x, float y) { FontRenderContext frc = gv.getFontRenderContext(); FontInfo info = sg2d.getGVFontInfo(gv.getFont(), frc); if (info.pixelHeight > OutlineTextRenderer.THRESHHOLD) { SurfaceData.outlineTextRenderer.drawGlyphVector(sg2d, gv, x, y); return; } if (sg2d.transformState >= SunGraphics2D.TRANSFORM_TRANSLATESCALE) { double origin[] = {x, y}; sg2d.transform.transform(origin, 0, origin, 0, 1); x = (float) origin[0]; y = (float) origin[1]; } else { x += sg2d.transX; // don't use the glyph info origin, already in gv. y += sg2d.transY; } GlyphList gl = GlyphList.getInstance(); gl.setFromGlyphVector(info, gv, x, y); drawGlyphList(sg2d, gl, info.aaHint); gl.dispose(); }
Example #12
Source File: GlyphListPipe.java From jdk8u-jdk with GNU General Public License v2.0 | 6 votes |
public void drawGlyphVector(SunGraphics2D sg2d, GlyphVector gv, float x, float y) { FontRenderContext frc = gv.getFontRenderContext(); FontInfo info = sg2d.getGVFontInfo(gv.getFont(), frc); if (info.pixelHeight > OutlineTextRenderer.THRESHHOLD) { SurfaceData.outlineTextRenderer.drawGlyphVector(sg2d, gv, x, y); return; } if (sg2d.transformState >= SunGraphics2D.TRANSFORM_TRANSLATESCALE) { double origin[] = {x, y}; sg2d.transform.transform(origin, 0, origin, 0, 1); x = (float) origin[0]; y = (float) origin[1]; } else { x += sg2d.transX; // don't use the glyph info origin, already in gv. y += sg2d.transY; } GlyphList gl = GlyphList.getInstance(); gl.setFromGlyphVector(info, gv, x, y); drawGlyphList(sg2d, gl, info.aaHint); gl.dispose(); }
Example #13
Source File: GlyphListPipe.java From dragonwell8_jdk with GNU General Public License v2.0 | 6 votes |
public void drawGlyphVector(SunGraphics2D sg2d, GlyphVector gv, float x, float y) { FontRenderContext frc = gv.getFontRenderContext(); FontInfo info = sg2d.getGVFontInfo(gv.getFont(), frc); if (info.pixelHeight > OutlineTextRenderer.THRESHHOLD) { SurfaceData.outlineTextRenderer.drawGlyphVector(sg2d, gv, x, y); return; } if (sg2d.transformState >= SunGraphics2D.TRANSFORM_TRANSLATESCALE) { double origin[] = {x, y}; sg2d.transform.transform(origin, 0, origin, 0, 1); x = (float) origin[0]; y = (float) origin[1]; } else { x += sg2d.transX; // don't use the glyph info origin, already in gv. y += sg2d.transY; } GlyphList gl = GlyphList.getInstance(); gl.setFromGlyphVector(info, gv, x, y); drawGlyphList(sg2d, gl, info.aaHint); gl.dispose(); }
Example #14
Source File: GlyphList.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
public void setFromGlyphVector(FontInfo info, GlyphVector gv, float x, float y) { this.x = x; this.y = y; this.lcdRGBOrder = info.lcdRGBOrder; this.lcdSubPixPos = info.lcdSubPixPos; /* A GV may be rendered in different Graphics. It is possible it is * used for one case where LCD text is available, and another where * it is not. Pass in the "info". to ensure get a suitable one. */ StandardGlyphVector sgv = StandardGlyphVector.getStandardGV(gv, info); // call before ensureCapacity :- usePositions = sgv.needsPositions(info.devTx); len = sgv.getNumGlyphs(); ensureCapacity(len); strikelist = sgv.setupGlyphImages(images, usePositions ? positions : null, info.devTx); glyphindex = -1; }
Example #15
Source File: GlyphList.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
public boolean setFromChars(FontInfo info, char[] chars, int off, int alen, float x, float y) { this.x = x; this.y = y; this.strikelist = info.fontStrike; this.lcdRGBOrder = info.lcdRGBOrder; this.lcdSubPixPos = info.lcdSubPixPos; len = alen; if (alen < 0) { len = 0; } else { len = alen; } ensureCapacity(len); System.arraycopy(chars, off, chData, 0, len); return mapChars(info, len); }
Example #16
Source File: GlyphList.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
public void setFromGlyphVector(FontInfo info, GlyphVector gv, float x, float y) { this.x = x; this.y = y; this.lcdRGBOrder = info.lcdRGBOrder; this.lcdSubPixPos = info.lcdSubPixPos; /* A GV may be rendered in different Graphics. It is possible it is * used for one case where LCD text is available, and another where * it is not. Pass in the "info". to ensure get a suitable one. */ StandardGlyphVector sgv = StandardGlyphVector.getStandardGV(gv, info); // call before ensureCapacity :- usePositions = sgv.needsPositions(info.devTx); len = sgv.getNumGlyphs(); ensureCapacity(len); strikelist = sgv.setupGlyphImages(images, usePositions ? positions : null, info.devTx); glyphindex = -1; }
Example #17
Source File: GlyphList.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
public void setFromGlyphVector(FontInfo info, GlyphVector gv, float x, float y) { this.x = x; this.y = y; this.lcdRGBOrder = info.lcdRGBOrder; this.lcdSubPixPos = info.lcdSubPixPos; /* A GV may be rendered in different Graphics. It is possible it is * used for one case where LCD text is available, and another where * it is not. Pass in the "info". to ensure get a suitable one. */ StandardGlyphVector sgv = StandardGlyphVector.getStandardGV(gv, info); // call before ensureCapacity :- usePositions = sgv.needsPositions(info.devTx); len = sgv.getNumGlyphs(); ensureCapacity(len); strikelist = sgv.setupGlyphImages(images, usePositions ? positions : null, info.devTx); glyphindex = -1; }
Example #18
Source File: X11TextRenderer.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
public void drawGlyphVector(SunGraphics2D sg2d, GlyphVector g, float x, float y) { FontRenderContext frc = g.getFontRenderContext(); FontInfo info = sg2d.getGVFontInfo(g.getFont(), frc); switch (info.aaHint) { case SunHints.INTVAL_TEXT_ANTIALIAS_OFF: super.drawGlyphVector(sg2d, g, x, y); return; case SunHints.INTVAL_TEXT_ANTIALIAS_ON: sg2d.surfaceData.aaTextRenderer.drawGlyphVector(sg2d, g, x, y); return; case SunHints.INTVAL_TEXT_ANTIALIAS_LCD_HRGB: case SunHints.INTVAL_TEXT_ANTIALIAS_LCD_VRGB: sg2d.surfaceData.lcdTextRenderer.drawGlyphVector(sg2d, g, x, y); return; default: } }
Example #19
Source File: GlyphList.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
public boolean setFromChars(FontInfo info, char[] chars, int off, int alen, float x, float y) { this.x = x; this.y = y; this.strikelist = info.fontStrike; this.lcdRGBOrder = info.lcdRGBOrder; this.lcdSubPixPos = info.lcdSubPixPos; len = alen; if (alen < 0) { len = 0; } else { len = alen; } ensureCapacity(len); System.arraycopy(chars, off, chData, 0, len); return mapChars(info, len); }
Example #20
Source File: GlyphList.java From jdk8u-jdk with GNU General Public License v2.0 | 6 votes |
public void setFromGlyphVector(FontInfo info, GlyphVector gv, float x, float y) { this.x = x; this.y = y; this.lcdRGBOrder = info.lcdRGBOrder; this.lcdSubPixPos = info.lcdSubPixPos; /* A GV may be rendered in different Graphics. It is possible it is * used for one case where LCD text is available, and another where * it is not. Pass in the "info". to ensure get a suitable one. */ StandardGlyphVector sgv = StandardGlyphVector.getStandardGV(gv, info); // call before ensureCapacity :- usePositions = sgv.needsPositions(info.devTx); len = sgv.getNumGlyphs(); ensureCapacity(len); strikelist = sgv.setupGlyphImages(images, usePositions ? positions : null, info.devTx); glyphindex = -1; }
Example #21
Source File: GlyphListPipe.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
public void drawGlyphVector(SunGraphics2D sg2d, GlyphVector gv, float x, float y) { FontRenderContext frc = gv.getFontRenderContext(); FontInfo info = sg2d.getGVFontInfo(gv.getFont(), frc); if (info.pixelHeight > OutlineTextRenderer.THRESHHOLD) { SurfaceData.outlineTextRenderer.drawGlyphVector(sg2d, gv, x, y); return; } if (sg2d.transformState >= SunGraphics2D.TRANSFORM_TRANSLATESCALE) { double origin[] = {x, y}; sg2d.transform.transform(origin, 0, origin, 0, 1); x = (float) origin[0]; y = (float) origin[1]; } else { x += sg2d.transX; // don't use the glyph info origin, already in gv. y += sg2d.transY; } GlyphList gl = GlyphList.getInstance(); gl.setFromGlyphVector(info, gv, x, y); drawGlyphList(sg2d, gl, info.aaHint); gl.dispose(); }
Example #22
Source File: GlyphList.java From Bytecoder with Apache License 2.0 | 6 votes |
public void setFromGlyphVector(FontInfo info, GlyphVector gv, float x, float y) { this.x = x; this.y = y; this.lcdRGBOrder = info.lcdRGBOrder; this.lcdSubPixPos = info.lcdSubPixPos; /* A GV may be rendered in different Graphics. It is possible it is * used for one case where LCD text is available, and another where * it is not. Pass in the "info". to ensure get a suitable one. */ StandardGlyphVector sgv = StandardGlyphVector.getStandardGV(gv, info); // call before ensureCapacity :- usePositions = sgv.needsPositions(info.devTx); len = sgv.getNumGlyphs(); ensureCapacity(len); strikelist = sgv.setupGlyphImages(images, usePositions ? positions : null, info.devTx); glyphindex = -1; }
Example #23
Source File: GlyphList.java From jdk8u-jdk with GNU General Public License v2.0 | 6 votes |
public boolean setFromChars(FontInfo info, char[] chars, int off, int alen, float x, float y) { this.x = x; this.y = y; this.strikelist = info.fontStrike; this.lcdRGBOrder = info.lcdRGBOrder; this.lcdSubPixPos = info.lcdSubPixPos; len = alen; if (alen < 0) { len = 0; } else { len = alen; } ensureCapacity(len); System.arraycopy(chars, off, chData, 0, len); return mapChars(info, len); }
Example #24
Source File: GlyphList.java From Bytecoder with Apache License 2.0 | 6 votes |
public boolean setFromChars(FontInfo info, char[] chars, int off, int alen, float x, float y) { this.x = x; this.y = y; this.strikelist = info.fontStrike; this.lcdRGBOrder = info.lcdRGBOrder; this.lcdSubPixPos = info.lcdSubPixPos; len = alen; if (alen < 0) { len = 0; } else { len = alen; } ensureCapacity(len); System.arraycopy(chars, off, chData, 0, len); return mapChars(info, len); }
Example #25
Source File: X11TextRenderer.java From jdk8u-jdk with GNU General Public License v2.0 | 6 votes |
public void drawGlyphVector(SunGraphics2D sg2d, GlyphVector g, float x, float y) { FontRenderContext frc = g.getFontRenderContext(); FontInfo info = sg2d.getGVFontInfo(g.getFont(), frc); switch (info.aaHint) { case SunHints.INTVAL_TEXT_ANTIALIAS_OFF: super.drawGlyphVector(sg2d, g, x, y); return; case SunHints.INTVAL_TEXT_ANTIALIAS_ON: sg2d.surfaceData.aaTextRenderer.drawGlyphVector(sg2d, g, x, y); return; case SunHints.INTVAL_TEXT_ANTIALIAS_LCD_HRGB: case SunHints.INTVAL_TEXT_ANTIALIAS_LCD_VRGB: sg2d.surfaceData.lcdTextRenderer.drawGlyphVector(sg2d, g, x, y); return; default: } }
Example #26
Source File: GlyphList.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
public boolean setFromChars(FontInfo info, char[] chars, int off, int alen, float x, float y) { this.x = x; this.y = y; this.strikelist = info.fontStrike; this.lcdRGBOrder = info.lcdRGBOrder; this.lcdSubPixPos = info.lcdSubPixPos; len = alen; if (alen < 0) { len = 0; } else { len = alen; } ensureCapacity(len); System.arraycopy(chars, off, chData, 0, len); return mapChars(info, len); }
Example #27
Source File: GlyphList.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
public void setFromGlyphVector(FontInfo info, GlyphVector gv, float x, float y) { this.x = x; this.y = y; this.lcdRGBOrder = info.lcdRGBOrder; this.lcdSubPixPos = info.lcdSubPixPos; /* A GV may be rendered in different Graphics. It is possible it is * used for one case where LCD text is available, and another where * it is not. Pass in the "info". to ensure get a suitable one. */ StandardGlyphVector sgv = StandardGlyphVector.getStandardGV(gv, info); // call before ensureCapacity :- usePositions = sgv.needsPositions(info.devTx); len = sgv.getNumGlyphs(); ensureCapacity(len); strikelist = sgv.setupGlyphImages(images, usePositions ? positions : null, info.devTx); glyphindex = -1; }
Example #28
Source File: X11TextRenderer.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
public void drawGlyphVector(SunGraphics2D sg2d, GlyphVector g, float x, float y) { FontRenderContext frc = g.getFontRenderContext(); FontInfo info = sg2d.getGVFontInfo(g.getFont(), frc); switch (info.aaHint) { case SunHints.INTVAL_TEXT_ANTIALIAS_OFF: super.drawGlyphVector(sg2d, g, x, y); return; case SunHints.INTVAL_TEXT_ANTIALIAS_ON: sg2d.surfaceData.aaTextRenderer.drawGlyphVector(sg2d, g, x, y); return; case SunHints.INTVAL_TEXT_ANTIALIAS_LCD_HRGB: case SunHints.INTVAL_TEXT_ANTIALIAS_LCD_VRGB: sg2d.surfaceData.lcdTextRenderer.drawGlyphVector(sg2d, g, x, y); return; default: } }
Example #29
Source File: GlyphListPipe.java From Bytecoder with Apache License 2.0 | 6 votes |
public void drawGlyphVector(SunGraphics2D sg2d, GlyphVector gv, float x, float y) { FontRenderContext frc = gv.getFontRenderContext(); FontInfo info = sg2d.getGVFontInfo(gv.getFont(), frc); if (info.pixelHeight > OutlineTextRenderer.THRESHHOLD) { SurfaceData.outlineTextRenderer.drawGlyphVector(sg2d, gv, x, y); return; } if (sg2d.transformState >= SunGraphics2D.TRANSFORM_TRANSLATESCALE) { double[] origin = {x, y}; sg2d.transform.transform(origin, 0, origin, 0, 1); x = (float) origin[0]; y = (float) origin[1]; } else { x += sg2d.transX; // don't use the glyph info origin, already in gv. y += sg2d.transY; } GlyphList gl = GlyphList.getInstance(); gl.setFromGlyphVector(info, gv, x, y); drawGlyphList(sg2d, gl, info.aaHint); gl.dispose(); }
Example #30
Source File: GlyphListPipe.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
public void drawGlyphVector(SunGraphics2D sg2d, GlyphVector gv, float x, float y) { FontRenderContext frc = gv.getFontRenderContext(); FontInfo info = sg2d.getGVFontInfo(gv.getFont(), frc); if (info.pixelHeight > OutlineTextRenderer.THRESHHOLD) { SurfaceData.outlineTextRenderer.drawGlyphVector(sg2d, gv, x, y); return; } if (sg2d.transformState >= SunGraphics2D.TRANSFORM_TRANSLATESCALE) { double origin[] = {x, y}; sg2d.transform.transform(origin, 0, origin, 0, 1); x = (float) origin[0]; y = (float) origin[1]; } else { x += sg2d.transX; // don't use the glyph info origin, already in gv. y += sg2d.transY; } GlyphList gl = GlyphList.getInstance(); gl.setFromGlyphVector(info, gv, x, y); drawGlyphList(sg2d, gl, info.aaHint); gl.dispose(); }