|
1 | 1 | Shoes.app { |
| 2 | + |
2 | 3 | vivaldifnt = font "vivaldi.ttf" |
| 4 | + if vivaldifnt |
| 5 | + para "This is the #{vivaldifnt[0]} font\n", font: "vivaldi" |
| 6 | + else |
| 7 | + alert "Failed to load Vivaldi" |
| 8 | + end |
| 9 | + coolfnt = font "#{DIR}/fonts/Coolvetica.ttf" |
| 10 | + if coolfnt |
| 11 | + para "This is the #{coolfnt[0]} font\n", font: coolfnt[0] |
| 12 | + else |
| 13 | + alert "Coolvetica failed to load" |
| 14 | + end |
| 15 | +=begin |
3 | 16 | lacunafnt = font "#{DIR}/fonts/Lacuna.ttf" |
4 | | - para "This is the #{vivaldifnt[0]} font\n", font: vivaldifnt[0] |
| 17 | + if lacunafnt |
| 18 | + para "This is the #{lacunafnt[0]} font\n", font: lacunafnt[0] |
| 19 | + else |
| 20 | + alert "Failed to load Lacuna" |
| 21 | + end |
| 22 | +=end |
| 23 | + djfont = font "#{DIR}/fonts/DejaVuSans.ttf" |
| 24 | + if djfont |
| 25 | + para "This is the #{djfont[0]} font\n", font: djfont[0] |
| 26 | + else |
| 27 | + alert "Dejavu failed to load" |
| 28 | + end |
5 | 29 | para "This is the Default font\n" |
6 | | - para "This is the #{lacunafnt[0]} font\n", font: "Lacuna" |
7 | | - #para "#{Shoes::FONTS}\n", font: "Vivaldi" |
| 30 | + # nothing below here is displayed on Linux! |
| 31 | + lcfont = font "LaCosta_Regular.ttf" |
| 32 | + if lcfont |
| 33 | + para "This is the #{lcfont[0]} font\n", font: lcfont[0] |
| 34 | + else |
| 35 | + alert "La Costa Regular failed to load" |
| 36 | + end |
| 37 | + |
| 38 | + para "\n..............................................\n" |
8 | 39 | para "#{Shoes::FONTS}\n", font: "Tunga" |
| 40 | + para "\n..............................................\n" |
9 | 41 | para "#{Shoes::FONTS}\n" |
10 | 42 | para "\n..............................................\n" |
11 | 43 | button "quit" do Shoes.quit end |
| 44 | + |
12 | 45 | } |
0 commit comments