MCPcopy Index your code
hub / github.com/processing/processing / FontOutline

Class FontOutline

core/src/processing/opengl/PJOGL.java:721–743  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 ///////////////////////////////////////////////////////////

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected