Search for Resources and Solutions

Font Style Lib

Initially I've created three separate Libs for the Font Styles but i wasn't happy with the design of single buttons and i've invented a way by joining the styles options. 

Font Style Lib allows to

  • Add/Remove Bold.
  • Add/Remove Italic
  • Add/Remove underline.


The Font Style Lib has a model with 3 properties:

  • bold_status - contains a boolean option to select/unselect button.
  • italic_status - contains a boolean option to select/unselect button.
  • underline_status - contains a boolean option to select/unselect button.


The Font Style Lib's run function returns 3 properties(one per time):

  • bold_status - contains a boolean option to add/remove bold.
  • italic_status - contains a boolean option to add/remove italic.
  • underline_status - contains a boolean option to add/remove italic.


Was this article helpful?