FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Removing two Typography examples from the web · DavidPrevot/processing@70d9bf5 · GitHub

Repository navigation

Commit 70d9bf5

Browse files
committed
Removing two Typography examples from the web
1 parent 74b0347 commit 70d9bf5

3 files changed

Lines changed: 27 additions & 12 deletions

File tree

‎core/src/processing/data/XML.java‎

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,9 @@ public class XML implements Serializable {
6161
/** Child elements, once loaded. */
6262
protected XML[] children;
6363

64-
64+
/**
65+
* @nowebref
66+
*/
6567
protected XML() { }
6668

6769

@@ -81,6 +83,8 @@ protected XML() { }
8183

8284
/**
8385
* Advanced users only; see loadXML() in PApplet.
86+
*
87+
* @nowebref
8488
*/
8589
public XML(File file) throws IOException, ParserConfigurationException, SAXException {
8690
this(file, null);
@@ -89,12 +93,16 @@ public XML(File file) throws IOException, ParserConfigurationException, SAXExcep
8993

9094
/**
9195
* Advanced users only; see loadXML() in PApplet.
96+
*
97+
* @nowebref
9298
*/
9399
public XML(File file, String options) throws IOException, ParserConfigurationException, SAXException {
94100
this(PApplet.createReader(file), options);
95101
}
96102

97-
103+
/**
104+
* @nowebref
105+
*/
98106
public XML(InputStream input) throws IOException, ParserConfigurationException, SAXException {
99107
this(input, null);
100108
}
@@ -104,6 +112,8 @@ public XML(InputStream input) throws IOException, ParserConfigurationException,
104112
* Shouldn't be part of main p5 reference, this is for advanced users.
105113
* Note that while it doesn't accept anything but UTF-8, this is preserved
106114
* so that we have some chance of implementing that in the future.
115+
*
116+
* @nowebref
107117
*/
108118
public XML(InputStream input, String options) throws IOException, ParserConfigurationException, SAXException {
109119
this(PApplet.createReader(input), options);
@@ -112,6 +122,8 @@ public XML(InputStream input, String options) throws IOException, ParserConfigur
112122

113123
/**
114124
* Advanced users only; see loadXML() in PApplet.
125+
*
126+
* @nowebref
115127
*/
116128
public XML(Reader reader) throws IOException, ParserConfigurationException, SAXException {
117129
this(reader, null);
@@ -120,6 +132,8 @@ public XML(Reader reader) throws IOException, ParserConfigurationException, SAXE
120132

121133
/**
122134
* Advanced users only; see loadXML() in PApplet.
135+
*
136+
* @nowebref
123137
*/
124138
public XML(Reader reader, String options) throws IOException, ParserConfigurationException, SAXException {
125139
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
@@ -166,6 +180,8 @@ public XML(Reader reader, String options) throws IOException, ParserConfiguratio
166180

167181
/**
168182
* @param name description TBD
183+
*
184+
* @nowebref
169185
*/
170186
public XML(String name) {
171187
try {
@@ -181,7 +197,9 @@ public XML(String name) {
181197
}
182198
}
183199

184-
200+
/**
201+
* @nowebref
202+
*/
185203
protected XML(XML parent, Node node) {
186204
this.node = node;
187205
this.parent = parent;
@@ -197,12 +215,15 @@ protected XML(XML parent, Node node) {
197215
* @throws SAXException
198216
* @throws ParserConfigurationException
199217
* @throws IOException
218+
* @nowebref
200219
*/
201220
static public XML parse(String data) throws IOException, ParserConfigurationException, SAXException {
202221
return XML.parse(data, null);
203222
}
204223

205-
224+
/**
225+
* @nowebref
226+
*/
206227
static public XML parse(String data, String options) throws IOException, ParserConfigurationException, SAXException {
207228
return new XML(new StringReader(data), null);
208229
}

‎java/examples/Basics/Typography/Letters/Letters.pde‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@
55
* setting the font, and then drawing the letters.
66
*/
77

8-
// The next line is needed if running in JavaScript Mode with Processing.js
9-
/* @pjs font="Courier.ttf"; */
10-
118
PFont f;
129

1310
void setup() {
@@ -16,7 +13,7 @@ void setup() {
1613

1714
// Create the font
1815
println(PFont.list());
19-
f = createFont("Monospaced", 24);
16+
f = createFont("Georgia", 24);
2017
textFont(f);
2118
textAlign(CENTER, CENTER);
2219
}

‎java/examples/Basics/Typography/Words/Words.pde‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@
55
* The letters can be aligned left, center, or right with the
66
* textAlign() function.
77
*/
8-
9-
// The next line is needed if running in JavaScript Mode with Processing.js
10-
/* @pjs font="Georgia.ttf"; */
118

129
PFont f;
1310

@@ -16,7 +13,7 @@ void setup() {
1613

1714
// Create the font
1815
println(PFont.list());
19-
f = createFont("Serif", 24);
16+
f = createFont("Georgia", 24);
2017
textFont(f);
2118
}
2219

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL