/** * build an accented character out of two pre-defined glyphs. * * @param x the x offset of the accent * @param y the y offset of the accent * @param a the index of the base glyph * @param b the index of the accent glyph * @param gp the GeneralPath into which the combined glyph will be written. */ private void buildAccentChar(float x, float y, float a, float b, GlyphData gv) { System.out.println("Building accent character!!!!!!"); for (int i = 0; i < nglyphs; i++) { if (encoding[i] == (int) a) { gv.addGlyph(readGlyph(i + 1), x, y); } else if (encoding[i] == (int) b) { gv.addGlyph(readGlyph(i + 1), 0, 0); } } /* if (shapes[b]!=null) { gp.append(shapes[b], false); } if (shapes[a]!=null) { gp.append(shapes[a], false); }*/ }