Skip to content

Commit

Permalink
Autodiscover font format options Font Family/Font Size in Hello, Text!
Browse files Browse the repository at this point in the history
  • Loading branch information
AndyObtiva committed Oct 30, 2021
1 parent 438fbfc commit 7a1ae72
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions samples/hello/hello_text.rb
Expand Up @@ -295,6 +295,8 @@ def launch
end

on('InsertMarkMoved') do
self.font_family = @text.applied_font_format_value('family')
self.font_size = @text.applied_font_format_value('size')
@bold_button.default = @text.applied_font_format_value('weight') == 'bold' ? 'active' : 'normal'
@italic_button.default = @text.applied_font_format_value('slant') == 'italic' ? 'active' : 'normal'
@underline_button.default = @text.applied_font_format_value('underline') == true ? 'active' : 'normal'
Expand Down

0 comments on commit 7a1ae72

Please sign in to comment.