teratail header banner
teratail header banner
質問するログイン新規登録

回答編集履歴

1

s

2017/02/26 03:45

投稿

_Kentarou
_Kentarou

スコア8490

answer CHANGED
@@ -1,4 +1,21 @@
1
1
  以下のページは確認しましたでしょうか?参考になると思います。
2
2
 
3
3
  [UIFontで文字を表示](http://docs.fabo.io/swift/uikit/007_uifont.html)
4
- [【Swift】UIFont | ポケットリファレンス サンプル付き](https://blog.77jp.net/uifont-swift-japanese-document-xcode)
4
+ [【Swift】UIFont | ポケットリファレンス サンプル付き](https://blog.77jp.net/uifont-swift-japanese-document-xcode)
5
+
6
+ ```swift
7
+ let labe = UILabel()
8
+ labe.font = UIFont.systemFont(ofSize: 11, weight: UIFontWeightUltraLight)
9
+
10
+ /*
11
+ UIFontWeightUltraLight
12
+ UIFontWeightThin
13
+ UIFontWeightLight
14
+ UIFontWeightRegular
15
+ UIFontWeightMedium
16
+ UIFontWeightSemibold
17
+ UIFontWeightBold
18
+ UIFontWeightHeavy
19
+ UIFontWeightBlack
20
+ */
21
+ ```