MCPcopy Create free account
hub / github.com/benfry/processing4 / FontOutline

Method FontOutline

core/src/processing/opengl/PJOGL.java:722–728  ·  view source on GitHub ↗
(char ch, Font font)

Source from the content-addressed store, hash-verified

720 PathIterator iter;
721
722 public FontOutline(char ch, Font font) {
723 char[] textArray = new char[] { ch };
724 FontRenderContext frc = getFontRenderContext(font);
725 GlyphVector gv = font.createGlyphVector(frc, textArray);
726 Shape shp = gv.getOutline();
727 iter = shp.getPathIterator(null);
728 }
729
730 public boolean isDone() {
731 return iter.isDone();

Callers

nothing calls this directly

Calls 2

getPathIteratorMethod · 0.80
getFontRenderContextMethod · 0.45

Tested by

no test coverage detected