/** * Returns the FontRenderContext associated with this GlyphVector. */ public FontRenderContext getFontRenderContext() { return gvs[0].getFontRenderContext(); }
/** * Returns the FontRenderContext associated with this GlyphVector. */ public FontRenderContext getFontRenderContext() { return gvs[0].getFontRenderContext(); }
/** * Returns the FontRenderContext associated with this GlyphVector. */ public FontRenderContext getFontRenderContext() { return gvs[0].getFontRenderContext(); }
public GlyphIterator(AttributedCharacterIterator aci, GVTGlyphVector gv) { this.aci = aci; this.gv = gv; this.idx = 0; this.chIdx = 0; this.lineIdx = 0; this.aciIdx = aci.getBeginIndex(); this.charCount = gv.getCharacterCount(idx, idx); this.ch = aci.first(); this.frc = gv.getFontRenderContext(); this.font = (GVTFont)aci.getAttribute(GVT_FONT); if (font == null) { font = new AWTGVTFont(aci.getAttributes()); } fontStart = aciIdx; this.maxFontSize = -Float.MAX_VALUE; this.maxAscent = -Float.MAX_VALUE; this.maxDescent = -Float.MAX_VALUE; // Figure out where the font size might change again... this.runLimit = aci.getRunLimit(TEXT_COMPOUND_ID); this.lineBreakRunLimit = aci.getRunLimit(FLOW_LINE_BREAK); Object o = aci.getAttribute(FLOW_LINE_BREAK); this.lineBreakCount = (o == null)?0:1; this.numGlyphs = gv.getNumGlyphs(); this.gp = gv.getGlyphPositions(0, this.numGlyphs+1, null); this.gvBase = new Point2D.Float(gp[0], gp[1]); this.adv = getCharWidth(); this.adj = getCharAdvance(); }
public GlyphIterator(AttributedCharacterIterator aci, GVTGlyphVector gv) { this.aci = aci; this.gv = gv; this.idx = 0; this.chIdx = 0; this.lineIdx = 0; this.aciIdx = aci.getBeginIndex(); this.charCount = gv.getCharacterCount(idx, idx); this.ch = aci.first(); this.frc = gv.getFontRenderContext(); this.font = (GVTFont)aci.getAttribute(GVT_FONT); if (font == null) { font = new AWTGVTFont(aci.getAttributes()); } fontStart = aciIdx; this.maxFontSize = -Float.MAX_VALUE; this.maxAscent = -Float.MAX_VALUE; this.maxDescent = -Float.MAX_VALUE; // Figure out where the font size might change again... this.runLimit = aci.getRunLimit(TEXT_COMPOUND_ID); this.lineBreakRunLimit = aci.getRunLimit(FLOW_LINE_BREAK); Object o = aci.getAttribute(FLOW_LINE_BREAK); this.lineBreakCount = (o == null)?0:1; this.numGlyphs = gv.getNumGlyphs(); this.gp = gv.getGlyphPositions(0, this.numGlyphs+1, null); this.gvBase = new Point2D.Float(gp[0], gp[1]); this.adv = getCharWidth(); this.adj = getCharAdvance(); }
public GlyphIterator(AttributedCharacterIterator aci, GVTGlyphVector gv) { this.aci = aci; this.gv = gv; this.idx = 0; this.chIdx = 0; this.lineIdx = 0; this.aciIdx = aci.getBeginIndex(); this.charCount = gv.getCharacterCount(idx, idx); this.ch = aci.first(); this.frc = gv.getFontRenderContext(); this.font = (GVTFont)aci.getAttribute(GVT_FONT); if (font == null) { font = new AWTGVTFont(aci.getAttributes()); } fontStart = aciIdx; this.maxFontSize = -Float.MAX_VALUE; this.maxAscent = -Float.MAX_VALUE; this.maxDescent = -Float.MAX_VALUE; // Figure out where the font size might change again... this.runLimit = aci.getRunLimit(TEXT_COMPOUND_ID); this.lineBreakRunLimit = aci.getRunLimit(FLOW_LINE_BREAK); Object o = aci.getAttribute(FLOW_LINE_BREAK); this.lineBreakCount = (o == null)?0:1; this.numGlyphs = gv.getNumGlyphs(); this.gp = gv.getGlyphPositions(0, this.numGlyphs+1, null); this.gvBase = new Point2D.Float(gp[0], gp[1]); this.adv = getCharWidth(); this.adj = getCharAdvance(); }