mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
Added several related references for textSize(), per processing/processing-docs#29
This commit is contained in:
@@ -12956,6 +12956,7 @@ public class PApplet extends Applet
|
||||
* @see PApplet#loadFont(String)
|
||||
* @see PFont
|
||||
* @see PGraphics#text(String, float, float)
|
||||
* @see PGraphics#textSize(float)
|
||||
*/
|
||||
public void textAlign(int alignX, int alignY) {
|
||||
if (recorder != null) recorder.textAlign(alignX, alignY);
|
||||
@@ -13026,6 +13027,7 @@ public class PApplet extends Applet
|
||||
* @see PApplet#loadFont(String)
|
||||
* @see PFont
|
||||
* @see PGraphics#text(String, float, float)
|
||||
* @see PGraphics#textSize(float)
|
||||
*/
|
||||
public void textFont(PFont which) {
|
||||
if (recorder != null) recorder.textFont(which);
|
||||
@@ -13056,6 +13058,7 @@ public class PApplet extends Applet
|
||||
* @see PFont#PFont
|
||||
* @see PGraphics#text(String, float, float)
|
||||
* @see PGraphics#textFont(PFont)
|
||||
* @see PGraphics#textSize(float)
|
||||
*/
|
||||
public void textLeading(float leading) {
|
||||
if (recorder != null) recorder.textLeading(leading);
|
||||
@@ -13143,6 +13146,7 @@ public class PApplet extends Applet
|
||||
* @see PFont#PFont
|
||||
* @see PGraphics#text(String, float, float)
|
||||
* @see PGraphics#textFont(PFont)
|
||||
* @see PGraphics#textSize(float)
|
||||
*/
|
||||
public float textWidth(String str) {
|
||||
return g.textWidth(str);
|
||||
|
||||
@@ -3898,6 +3898,7 @@ public class PGraphics extends PImage implements PConstants {
|
||||
* @see PApplet#loadFont(String)
|
||||
* @see PFont
|
||||
* @see PGraphics#text(String, float, float)
|
||||
* @see PGraphics#textSize(float)
|
||||
*/
|
||||
public void textAlign(int alignX, int alignY) {
|
||||
textAlign = alignX;
|
||||
@@ -3974,6 +3975,7 @@ public class PGraphics extends PImage implements PConstants {
|
||||
* @see PApplet#loadFont(String)
|
||||
* @see PFont
|
||||
* @see PGraphics#text(String, float, float)
|
||||
* @see PGraphics#textSize(float)
|
||||
*/
|
||||
public void textFont(PFont which) {
|
||||
if (which != null) {
|
||||
@@ -4037,6 +4039,7 @@ public class PGraphics extends PImage implements PConstants {
|
||||
* @see PFont#PFont
|
||||
* @see PGraphics#text(String, float, float)
|
||||
* @see PGraphics#textFont(PFont)
|
||||
* @see PGraphics#textSize(float)
|
||||
*/
|
||||
public void textLeading(float leading) {
|
||||
textLeading = leading;
|
||||
@@ -4153,6 +4156,7 @@ public class PGraphics extends PImage implements PConstants {
|
||||
* @see PFont#PFont
|
||||
* @see PGraphics#text(String, float, float)
|
||||
* @see PGraphics#textFont(PFont)
|
||||
* @see PGraphics#textSize(float)
|
||||
*/
|
||||
public float textWidth(String str) {
|
||||
if (textFont == null) {
|
||||
|
||||
Reference in New Issue
Block a user