diff --git a/examples/Kerning.rb b/examples/Kerning.rb new file mode 100644 index 000000000..c3b317dd6 --- /dev/null +++ b/examples/Kerning.rb @@ -0,0 +1,7 @@ +Shoes.app do + + para "This text have kerning applied to it", kerning:10, size:18 + + para "This is normal text for reference", size:18 + +end \ No newline at end of file diff --git a/lacci/lib/shoes/drawables/para.rb b/lacci/lib/shoes/drawables/para.rb index c48e239e7..393b0d3d9 100644 --- a/lacci/lib/shoes/drawables/para.rb +++ b/lacci/lib/shoes/drawables/para.rb @@ -3,7 +3,7 @@ class Shoes class Para < Shoes::Drawable include FontHelper - shoes_styles :text_items, :size, :family, :font_weight, :font, :font_variant, :emphasis + shoes_styles :text_items, :size, :family, :font_weight, :font, :font_variant, :emphasis, :kerning shoes_style(:stroke) { |val, _name| Shoes::Colors.to_rgb(val) } shoes_style(:fill) { |val, _name| Shoes::Colors.to_rgb(val) }