Class: MotionDynamicType::Font

Inherits:
Object
  • Object
show all
Defined in:
lib/motion-dynamic-type/font.rb

Class Method Summary collapse

Class Method Details

.bodyObject



4
5
6
# File 'lib/motion-dynamic-type/font.rb', line 4

def body
  UIFont.preferredFontForTextStyle(UIFontTextStyleBody)
end

.caption_oneObject



16
17
18
# File 'lib/motion-dynamic-type/font.rb', line 16

def caption_one
  UIFont.preferredFontForTextStyle(UIFontTextStyleCaption1)
end

.caption_twoObject



20
21
22
# File 'lib/motion-dynamic-type/font.rb', line 20

def caption_two
  UIFont.preferredFontForTextStyle(UIFontTextStyleCaption2)
end

.footnoteObject



24
25
26
# File 'lib/motion-dynamic-type/font.rb', line 24

def footnote
  UIFont.preferredFontForTextStyle(UIFontTextStyleFootnote)
end

.headlineObject



8
9
10
# File 'lib/motion-dynamic-type/font.rb', line 8

def headline
  UIFont.preferredFontForTextStyle(UIFontTextStyleHeadline)
end

.subheadObject



12
13
14
# File 'lib/motion-dynamic-type/font.rb', line 12

def subhead
  UIFont.preferredFontForTextStyle(UIFontTextStyleSubheadline)
end