Skip to content

Commit

Permalink
Fixing kerning para style
Browse files Browse the repository at this point in the history
  • Loading branch information
vikas-chaudhary-2802 committed Feb 8, 2024
1 parent 9c18967 commit cf2dc2a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions examples/Kerning.rb
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion lacci/lib/shoes/drawables/para.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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) }

Expand Down

0 comments on commit cf2dc2a

Please sign in to comment.