回答編集履歴

1

s

2017/02/26 03:45

投稿

_Kentarou
_Kentarou

スコア8490

test CHANGED
@@ -5,3 +5,37 @@
5
5
  [UIFontで文字を表示](http://docs.fabo.io/swift/uikit/007_uifont.html)
6
6
 
7
7
  [【Swift】UIFont | ポケットリファレンス サンプル付き](https://blog.77jp.net/uifont-swift-japanese-document-xcode)
8
+
9
+
10
+
11
+ ```swift
12
+
13
+ let labe = UILabel()
14
+
15
+ labe.font = UIFont.systemFont(ofSize: 11, weight: UIFontWeightUltraLight)
16
+
17
+
18
+
19
+ /*
20
+
21
+ UIFontWeightUltraLight
22
+
23
+ UIFontWeightThin
24
+
25
+ UIFontWeightLight
26
+
27
+ UIFontWeightRegular
28
+
29
+ UIFontWeightMedium
30
+
31
+ UIFontWeightSemibold
32
+
33
+ UIFontWeightBold
34
+
35
+ UIFontWeightHeavy
36
+
37
+ UIFontWeightBlack
38
+
39
+ */
40
+
41
+ ```