Sha256: 6802863b490cafbc309fd4f6991ec20d8146b41843c9e2e21a661d418d6939c0

Contents?: true

Size: 1.14 KB

Versions: 1

Compression:

Stored size: 1.14 KB

Contents

module MotionDynamicType
  class Font
    class << self
      def body
        UIFont.preferredFontForTextStyle(UIFontTextStyleBody)
      end
      
      def headline
        UIFont.preferredFontForTextStyle(UIFontTextStyleHeadline)
      end

      def subhead
        UIFont.preferredFontForTextStyle(UIFontTextStyleSubheadline)
      end

      def caption_one
        UIFont.preferredFontForTextStyle(UIFontTextStyleCaption1)
      end

      def caption_two
        UIFont.preferredFontForTextStyle(UIFontTextStyleCaption2)
      end

      def footnote
        UIFont.preferredFontForTextStyle(UIFontTextStyleFootnote)
      end
      
      def callout
        UIFont.preferredFontForTextStyle(UIFontTextStyleCallout)
      end
      
      def large_title
        UIFont.preferredFontForTextStyle(UIFontTextStyleLargeTitle)
      end
      
      def title_one
        UIFont.preferredFontForTextStyle(UIFontTextStyleTitle1)
      end
      
      def title_two
        UIFont.preferredFontForTextStyle(UIFontTextStyleTitle2)
      end
      
      def title_three
        UIFont.preferredFontForTextStyle(UIFontTextStyleTitle3)
      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
motion-dynamic-type-0.2.0 lib/motion-dynamic-type/font.rb