| 719 | |
| 720 | |
| 721 | protected class FontOutline implements PGL.FontOutline { |
| 722 | PathIterator iter; |
| 723 | |
| 724 | public FontOutline(char ch, Font font) { |
| 725 | char textArray[] = new char[] { ch }; |
| 726 | FontRenderContext frc = getFontRenderContext(font); |
| 727 | GlyphVector gv = font.createGlyphVector(frc, textArray); |
| 728 | Shape shp = gv.getOutline(); |
| 729 | iter = shp.getPathIterator(null); |
| 730 | } |
| 731 | |
| 732 | public boolean isDone() { |
| 733 | return iter.isDone(); |
| 734 | } |
| 735 | |
| 736 | public int currentSegment(float coords[]) { |
| 737 | return iter.currentSegment(coords); |
| 738 | } |
| 739 | |
| 740 | public void next() { |
| 741 | iter.next(); |
| 742 | } |
| 743 | } |
| 744 | |
| 745 | |
| 746 | /////////////////////////////////////////////////////////// |
nothing calls this directly
no outgoing calls
no test coverage detected