Skip to content

Commit bebcd1c

Browse files
committed
Suitable fonts for Buster
1 parent 21c24b4 commit bebcd1c

File tree

17 files changed

+18
-18
lines changed

17 files changed

+18
-18
lines changed

advanced_data/counting_words.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def setup
3131
# Open a file, read its contents, and 'scan' for words using a regex.
3232
# Include words with apostrophe eg Harker's
3333
@tokens = File.read(data_path('dracula.txt')).scan(/[\w'-]+/)
34-
text_font(create_font('Georgia', 24))
34+
text_font(create_font('DejaVu Serif', 24))
3535
end
3636

3737
def draw

advanced_data/noaa_weather.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ class NOAAWeather < Processing::App
1111
NOAA = 'KMIA' # NOAA Weather Miami Airport
1212
def setup
1313
sketch_title "NOAA's National Weather Service"
14-
# font = create_font('Times Roman', 26)
14+
font = create_font('DejaVu Sans', 26)
1515
# font = create_font('Merriweather-Light.ttf', 28)
16-
# text_font(font)
16+
text_font(font)
1717
# The URL for the XML document
1818

1919
fo = "https://w1.weather.gov/xml/current_obs/display.php?stid=%s"

advanced_data/regex.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def setup
1313
# Load the links
1414
@links = load_links(url)
1515
links.uniq! # get rid of the duplicates
16-
text_font(create_font('Georgia', 16))
16+
text_font(create_font('DejaVu Serif', 16))
1717
end
1818

1919
def draw

advanced_data/word_frequency.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def setup
3333
load_file(DRACULA)
3434
load_file(FRANKENSTEIN)
3535
# Create the font
36-
text_font(create_font('Georgia', 24))
36+
text_font(create_font('DejaVu Serif', 24))
3737
end
3838

3939
def draw

basics/data/characters_strings.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def setup
2222
sketch_title 'Characters Strings'
2323
@words = "Begin..."
2424
# Create the font
25-
text_font create_font("Georgia", 36)
25+
text_font create_font('DejaVu Serif', 36)
2626
end
2727

2828
def draw

basics/typography/letters.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def settings
1515

1616
def setup
1717
sketch_title 'Letters'
18-
@font = create_font 'Georgia', 24
18+
@font = create_font 'DejaVu Serif', 24
1919
text_font @font
2020
text_align CENTER, CENTER
2121
end

basics/typography/words.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def setup
1111
sketch_title 'Words'
1212
@x = 30
1313
Processing::PFont.list.each { |fnt| puts fnt }
14-
@font = create_font('Georgia', 24)
14+
@font = create_font('DejaVu Serif', 24)
1515
text_font @font, 32
1616
no_loop
1717
end

demo/fraction_sums.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ class FractionSums < Processing::App
66

77
def setup
88
sketch_title 'Math Blackboard'
9-
@f = createFont('Arial', 24, true)
9+
@f = create_font('Liberation Sans', 24, true)
1010
half = 1 / 2r # since ruby 2.1.0 (and jruby-9.0.0.0)
1111
third = 1 / 3r
1212
quarter = 1 / 4r

demo/fractions.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def settings
1010

1111
def setup
1212
sketch_title 'Fraction Sums'
13-
@f = createFont('Arial', 24, true)
13+
@f = create_font('Liberation Sans', 24, true)
1414
third = 1 / 3r # since ruby 2.1.0 (and jruby-9.0.0.0)
1515
quarter = 1 / 4r
1616
format_add = '%s + %s = %s'

demo/orbit.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def setup
1111
sketch_title 'Orbit'
1212
frame_rate 30
1313
fill 0
14-
@d_font = create_font('Helvetica', 40)
14+
@d_font = create_font('Liberation Sans', 40)
1515
end
1616

1717
def draw

demo/raining.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def setup
2727
@weight = 20
2828
@drops = RainDrops.new width, height
2929
@paused = false
30-
font = create_font('Georgia', 15)
30+
font = create_font('DejaVu Serif', 15)
3131
text_font(font)
3232
end
3333

external_library/gems/ruby_wordcram/clickable_words.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def setup
2626
# Save the image of the wordcram
2727
@cached_image = get
2828
# Set up styles for when we draw stuff to the screen (later)
29-
text_font(create_font('sans', 150))
29+
text_font(create_font('DejaVu Sans', 150))
3030
text_align(CENTER, CENTER)
3131
@last_clicked_word = nil
3232
end

external_library/gems/ruby_wordcram/style_specific_words.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def setup
3131
z = alphabet[25]
3232
z.set_color(color('#0000FF'))
3333
.set_angle(-20.radians)
34-
.set_font(create_font('Georgia', 1))
34+
.set_font(create_font('DejaVu Serif', 1))
3535
.set_place(180, 40)
3636
.set_size(130)
3737
WordCram.new(self)

external_library/gems/toxiclibs/force_directed/force_directed_graph.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def settings
2929

3030
def setup
3131
sketch_title 'Force Directed Graph'
32-
@f = create_font('Georgia', 12, true)
32+
@f = create_font('DejaVu Serif', 12, true)
3333
@show_physics = true
3434
@show_particles = true
3535
# Initialize the physics

external_library/gems/toxiclibs/simple_cluster/simple_cluster.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def settings
1818

1919
def setup
2020
sketch_title 'Simple Cluster'
21-
@f = createFont('Georgia', 12, true)
21+
@f = create_font('DejaVu Serif', 12, true)
2222
@show_physics = true
2323
@show_particles = true
2424
@show_physics = true

library/vecmath/vec2d/circumcircle_sketch.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def settings
3232
def setup
3333
sketch_title 'Circumcircle Through Three Points'
3434
@point = MathPoint.new
35-
@font = create_font('Arial', 16, true)
35+
@font = create_font('Liberation Sans', 16, true)
3636
@points = TPoints.new
3737
ellipse_mode RADIUS
3838
@renderer = GfxRender.new(self.g)

lsystems/cstest.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def setup
1010
sketch_title 'Context Sensitive Test'
1111
background 0
1212
fill(200, 200, 0)
13-
f = create_font('Arial', 16, true)
13+
f = create_font('Liberation Sans', 16, true)
1414
text_font(f)
1515
no_loop
1616
end

0 commit comments

Comments
 (0)