Class: MotionDynamicType::Font
- Inherits:
-
Object
- Object
- MotionDynamicType::Font
- Defined in:
- lib/motion-dynamic-type/font.rb
Class Method Summary collapse
- .body ⇒ Object
- .callout ⇒ Object
- .caption_one ⇒ Object
- .caption_two ⇒ Object
- .footnote ⇒ Object
- .headline ⇒ Object
- .large_title ⇒ Object
- .subhead ⇒ Object
- .title_one ⇒ Object
- .title_three ⇒ Object
- .title_two ⇒ Object
Class Method Details
.body ⇒ Object
4 5 6 |
# File 'lib/motion-dynamic-type/font.rb', line 4 def body UIFont.preferredFontForTextStyle(UIFontTextStyleBody) end |
.callout ⇒ Object
28 29 30 |
# File 'lib/motion-dynamic-type/font.rb', line 28 def callout UIFont.preferredFontForTextStyle(UIFontTextStyleCallout) end |
.caption_one ⇒ Object
16 17 18 |
# File 'lib/motion-dynamic-type/font.rb', line 16 def caption_one UIFont.preferredFontForTextStyle(UIFontTextStyleCaption1) end |
.caption_two ⇒ Object
20 21 22 |
# File 'lib/motion-dynamic-type/font.rb', line 20 def caption_two UIFont.preferredFontForTextStyle(UIFontTextStyleCaption2) end |
.footnote ⇒ Object
24 25 26 |
# File 'lib/motion-dynamic-type/font.rb', line 24 def footnote UIFont.preferredFontForTextStyle(UIFontTextStyleFootnote) end |
.headline ⇒ Object
8 9 10 |
# File 'lib/motion-dynamic-type/font.rb', line 8 def headline UIFont.preferredFontForTextStyle(UIFontTextStyleHeadline) end |
.large_title ⇒ Object
32 33 34 |
# File 'lib/motion-dynamic-type/font.rb', line 32 def large_title UIFont.preferredFontForTextStyle(UIFontTextStyleLargeTitle) end |
.subhead ⇒ Object
12 13 14 |
# File 'lib/motion-dynamic-type/font.rb', line 12 def subhead UIFont.preferredFontForTextStyle(UIFontTextStyleSubheadline) end |
.title_one ⇒ Object
36 37 38 |
# File 'lib/motion-dynamic-type/font.rb', line 36 def title_one UIFont.preferredFontForTextStyle(UIFontTextStyleTitle1) end |
.title_three ⇒ Object
44 45 46 |
# File 'lib/motion-dynamic-type/font.rb', line 44 def title_three UIFont.preferredFontForTextStyle(UIFontTextStyleTitle3) end |
.title_two ⇒ Object
40 41 42 |
# File 'lib/motion-dynamic-type/font.rb', line 40 def title_two UIFont.preferredFontForTextStyle(UIFontTextStyleTitle2) end |