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

.calloutObject



28
29
30
# File 'lib/motion-dynamic-type/font.rb', line 28

def callout
  UIFont.preferredFontForTextStyle(UIFontTextStyleCallout)
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

.large_titleObject



32
33
34
# File 'lib/motion-dynamic-type/font.rb', line 32

def large_title
  UIFont.preferredFontForTextStyle(UIFontTextStyleLargeTitle)
end

.subheadObject



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

def subhead
  UIFont.preferredFontForTextStyle(UIFontTextStyleSubheadline)
end

.title_oneObject



36
37
38
# File 'lib/motion-dynamic-type/font.rb', line 36

def title_one
  UIFont.preferredFontForTextStyle(UIFontTextStyleTitle1)
end

.title_threeObject



44
45
46
# File 'lib/motion-dynamic-type/font.rb', line 44

def title_three
  UIFont.preferredFontForTextStyle(UIFontTextStyleTitle3)
end

.title_twoObject



40
41
42
# File 'lib/motion-dynamic-type/font.rb', line 40

def title_two
  UIFont.preferredFontForTextStyle(UIFontTextStyleTitle2)
end