1. San Francisco (SF)

  2. Terminology

  3. Concepts

  4. Tools

    플랫폼에서 사용 가능한 Tool은 아래 세 가지가 있다.

    1. System Font

      • native to platform (feels native to platform as a typeface)

        // 모든 플랫폼에서 System Font API에 접근하는 방법은 동일하다
        NSFont.systemFont(ofSize: 14, weight: NSFontWeightSemibold)
        UIFont.systemFont(ofSize: 14, weight: UIFontWeightBlack)
        
      • Weights, Size-Specific Tracking, Size-Specific Outlines

        (Font의 weight를 조정할 수 있고, Font의 Size에 따라 Tracking/Outline이 자동으로 조정된다.)

      • Bold Text Switch

        설정 앱에서 Bold Text로 지정 가능하다.

        Untitled

    2. Dynamic Type (iOS, watchOS)

      • Accessibility와 관련 있다.

        Test Styles - UIFont.preferredFont(forTextStyle:)
         // System Font를 지정하지 않고, headline, body, largeTitle 등의 sementic identifier를 지정한다
        
        Content Size Categories
        // 아래와 같이 설정 앱에서 텍스트 크기를 조정 가능하다
        
      • 설정 앱에서 텍스트 크기를 조정 가능하다. Dynamic Type을 지원하는 앱이라면, 여기서 지정한 크기로 텍스트 크기가 일괄 변경된다.

        Untitled

      • Text Style API (Large Title, Headline, Body 등)를 통해 자동으로 Dynamic Type이 지원된다.

    3. Custom Fonts

      • Custom Fonts에 Dynamic Type을 적용하려면 아래와 같이 하면 된다.

        Untitled

      • Font를 정할 때 아래 요소를 고려해야 한다.

        Untitled

  5. Details