MCPcopy Index your code
hub / github.com/benfry/processing4 / Text

Method Text

core/src/processing/core/PShapeSVG.java:1710–1725  ·  view source on GitHub ↗
(PShapeSVG parent, XML properties)

Source from the content-addressed store, hash-verified

1708 protected PFont font;
1709
1710 public Text(PShapeSVG parent, XML properties) {
1711 super(parent, properties, true);
1712
1713 // get location
1714 float x = Float.parseFloat(properties.getString("x"));
1715 float y = Float.parseFloat(properties.getString("y"));
1716
1717 if (matrix == null) {
1718 matrix = new PMatrix2D();
1719 }
1720 matrix.translate(x, y);
1721
1722 family = GROUP;
1723
1724 font = parseFont(properties);
1725 }
1726 }
1727
1728

Callers

nothing calls this directly

Calls 4

parseFloatMethod · 0.80
parseFontMethod · 0.80
getStringMethod · 0.65
translateMethod · 0.65

Tested by

no test coverage detected