diff --git a/lib/fontcustom/templates/fontcustom-preview.html b/lib/fontcustom/templates/fontcustom-preview.html index b89f6aad..f1184b3c 100644 --- a/lib/fontcustom/templates/fontcustom-preview.html +++ b/lib/fontcustom/templates/fontcustom-preview.html @@ -65,8 +65,9 @@ width: 10%; } - <% scale.each do |n| %> + <% scale.each_with_index do |n,index| %> .size-<%= n %> { font-size: <%= n %>px; } + .step-<%= index+1 %> { width: <%= 1.5+((index.to_f+1)/0.70) %>%;} <% end %> .usage { margin-top: 10px; } @@ -99,10 +100,10 @@

<%= @opts[:font_name] %> contains <%= @data[:glyphs].length %> glyphs:

<% @data[:glyphs].each_with_index do |name, index| %>
- <% scale.each do |n| %><% end %> + <% scale.each_with_index do |n,index| %>Aa <% end %>
- <% scale.each do |n| %><%= n %><% end %> + <% scale.each_with_index do |n,index| %><%= n %><% end %>