samples/simple_font.rb in shoes-4.0.0.pre12 vs samples/simple_font.rb in shoes-4.0.0.rc1
- old
+ new
@@ -1,11 +1,16 @@
# frozen_string_literal: true
+
Shoes.app height: 200 do
font File.join(Shoes::DIR, 'fonts/Coolvetica.ttf')
stack do
flow do
title 'Good Question'
para 'Arial (default)', left: 400, top: 20
+ end
+ flow do
+ title 'Good Question', font: 'Fira Mono'
+ para 'Fira Mono', left: 400, top: 20
end
flow do
title 'Cool Question', font: 'Coolvetica'
para 'Coolvetica', left: 400, top: 20
end