Skip to content
This repository was archived by the owner on Feb 19, 2021. It is now read-only.

Files

Latest commit

author
macbook pro yifan
Oct 17, 2017
e30d905 · Oct 17, 2017

History

History

005-change-font-name

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Oct 15, 2017
Oct 16, 2017
Oct 16, 2017
Oct 17, 2017

Change Font Name

Demo

Change Font Name - demo

Introduction

修改 Label 字体。

字体遍历:

let familyNames = UIFont.familyNames
for familyName in familyNames {
  print("++++++ \(familyName)")
  let fontNames = UIFont.fontNames(forFamilyName: familyName)
  for fontName in fontNames {
    print("----- \(fontName)")
  }
}

Reference