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

Latest commit

 

History

History

005-change-font-name

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

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