Skip to content

Commit a1116ec

Browse files
authored
Merge pull request #223 from multimentha/fix_missing_typos
Abstain from using custom font in example 18-6
2 parents a736657 + 46524fa commit a1116ec

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

chp18_data/example_18_06_XMLYahooWeather/example_18_06_XMLYahooWeather.pde

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,9 @@ String city = "";
1717
// Search for "woeid lookup" to find your own.
1818
String woeid = "638242";
1919

20-
PFont font;
21-
2220
void setup() {
2321
size(600, 360);
2422

25-
font = createFont("Merriweather-Light.ttf", 28);
26-
textFont(font);
27-
2823
// The URL for the XML document
2924
String url = "http://query.yahooapis.com/v1/public/yql?format=xml&q=select+*+from+weather.forecast+where+woeid=" + woeid + "+and+u='C'";
3025
println(url);
@@ -47,8 +42,8 @@ void draw() {
4742
fill(0);
4843

4944
// Display all the stuff we want to display
45+
textSize(28);
5046
text("Location: " + city, width*0.15, height*0.33);
5147
text("Today’s high: " + temperature, width*0.15, height*0.5);
5248
text("Forecast: " + weather, width*0.15, height*0.66);
53-
5449
}

0 commit comments

Comments
 (0)