daily pastebin goal
3%
SHARE
TWEET

Untitled

a guest Nov 22nd, 2017 48 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. button.titleLabel.font = [UIFont systemFontOfSize:size];
  2.    
  3. [myButton.titleLabel setFont:[UIFont fontWithName:@"Helvetica-Bold" size:13.0]];
  4.    
  5. NSArray *familyNames = [[NSArray alloc] initWithArray:[UIFont familyNames]];
  6. NSArray *fontNames;
  7. NSInteger indFamily, indFont;
  8. for (indFamily=0; indFamily<[familyNames count]; ++indFamily)
  9. {
  10.     NSLog(@"Family name: %@", [familyNames objectAtIndex:indFamily]);
  11.     fontNames = [[NSArray alloc] initWithArray:
  12.             [UIFont fontNamesForFamilyName:
  13.             [familyNames objectAtIndex:indFamily]]];
  14.     for (indFont=0; indFont<[fontNames count]; ++indFont)
  15.     {
  16.         NSLog(@"    Font name: %@", [fontNames objectAtIndex:indFont]);
  17.     }
  18. }
  19.    
  20. 2012-04-02 11:36:34.395 MyApp[3579:707] Family name: Thonburi
  21. 2012-04-02 11:36:34.398 MyApp[3579:707]     Font name: Thonburi-Bold
  22. 2012-04-02 11:36:34.402 MyApp[3579:707]     Font name: Thonburi
  23. 2012-04-02 11:36:34.405 MyApp[3579:707] Family name: Snell Roundhand
  24. 2012-04-02 11:36:34.408 MyApp[3579:707]     Font name: SnellRoundhand-Bold
  25. 2012-04-02 11:36:34.411 MyApp[3579:707]     Font name: SnellRoundhand-Black
  26. 2012-04-02 11:36:34.415 MyApp[3579:707]     Font name: SnellRoundhand
  27. 2012-04-02 11:36:34.418 MyApp[3579:707] Family name: Academy Engraved LET
  28. 2012-04-02 11:36:34.421 MyApp[3579:707]     Font name: AcademyEngravedLetPlain
  29. 2012-04-02 11:36:34.424 MyApp[3579:707] Family name: Marker Felt
  30. 2012-04-02 11:36:34.427 MyApp[3579:707]     Font name: MarkerFelt-Wide
  31. 2012-04-02 11:36:34.430 MyApp[3579:707]     Font name: MarkerFelt-Thin
  32. 2012-04-02 11:36:34.434 MyApp[3579:707] Family name: Geeza Pro
  33. 2012-04-02 11:36:34.437 MyApp[3579:707]     Font name: GeezaPro-Bold
  34. 2012-04-02 11:36:34.441 MyApp[3579:707]     Font name: GeezaPro
  35. 2012-04-02 11:36:34.445 MyApp[3579:707] Family name: Arial Rounded MT Bold
  36. 2012-04-02 11:36:34.448 MyApp[3579:707]     Font name: ArialRoundedMTBold
  37. 2012-04-02 11:36:34.451 MyApp[3579:707] Family name: Trebuchet MS
  38. 2012-04-02 11:36:34.455 MyApp[3579:707]     Font name: TrebuchetMS
  39. 2012-04-02 11:36:34.458 MyApp[3579:707]     Font name: TrebuchetMS-Bold
  40. 2012-04-02 11:36:34.461 MyApp[3579:707]     Font name: TrebuchetMS-Italic
  41. 2012-04-02 11:36:34.464 MyApp[3579:707]     Font name: Trebuchet-BoldItalic
  42. 2012-04-02 11:36:34.467 MyApp[3579:707] Family name: Arial
  43. 2012-04-02 11:36:34.471 MyApp[3579:707]     Font name: Arial-BoldMT
  44. 2012-04-02 11:36:34.474 MyApp[3579:707]     Font name: ArialMT
  45. 2012-04-02 11:36:34.477 MyApp[3579:707]     Font name: Arial-ItalicMT
  46. 2012-04-02 11:36:34.480 MyApp[3579:707]     Font name: Arial-BoldItalicMT
  47. 2012-04-02 11:36:34.483 MyApp[3579:707] Family name: Marion
  48. 2012-04-02 11:36:34.487 MyApp[3579:707]     Font name: Marion-Regular
  49. 2012-04-02 11:36:34.491 MyApp[3579:707]     Font name: Marion-Bold
  50. 2012-04-02 11:36:34.494 MyApp[3579:707]     Font name: Marion-Italic
  51. 2012-04-02 11:36:34.503 MyApp[3579:707] Family name: Gurmukhi MN
  52. 2012-04-02 11:36:34.507 MyApp[3579:707]     Font name: GurmukhiMN
  53. 2012-04-02 11:36:34.511 MyApp[3579:707]     Font name: GurmukhiMN-Bold
  54. 2012-04-02 11:36:34.514 MyApp[3579:707] Family name: Malayalam Sangam MN
  55. 2012-04-02 11:36:34.518 MyApp[3579:707]     Font name: MalayalamSangamMN-Bold
  56. 2012-04-02 11:36:34.522 MyApp[3579:707]     Font name: MalayalamSangamMN
  57. 2012-04-02 11:36:34.525 MyApp[3579:707] Family name: Bradley Hand
  58. 2012-04-02 11:36:34.529 MyApp[3579:707]     Font name: BradleyHandITCTT-Bold
  59. 2012-04-02 11:36:34.532 MyApp[3579:707] Family name: Kannada Sangam MN
  60. 2012-04-02 11:36:34.536 MyApp[3579:707]     Font name: KannadaSangamMN
  61. 2012-04-02 11:36:34.540 MyApp[3579:707]     Font name: KannadaSangamMN-Bold
  62. 2012-04-02 11:36:34.544 MyApp[3579:707] Family name: Bodoni 72 Oldstyle
  63. 2012-04-02 11:36:34.548 MyApp[3579:707]     Font name: BodoniSvtyTwoOSITCTT-Book
  64. 2012-04-02 11:36:34.552 MyApp[3579:707]     Font name: BodoniSvtyTwoOSITCTT-Bold
  65. 2012-04-02 11:36:34.555 MyApp[3579:707]     Font name: BodoniSvtyTwoOSITCTT-BookIt
  66. 2012-04-02 11:36:34.559 MyApp[3579:707] Family name: Cochin
  67. 2012-04-02 11:36:34.562 MyApp[3579:707]     Font name: Cochin
  68. 2012-04-02 11:36:34.566 MyApp[3579:707]     Font name: Cochin-BoldItalic
  69. 2012-04-02 11:36:34.570 MyApp[3579:707]     Font name: Cochin-Italic
  70. 2012-04-02 11:36:34.573 MyApp[3579:707]     Font name: Cochin-Bold
  71. 2012-04-02 11:36:34.577 MyApp[3579:707] Family name: Sinhala Sangam MN
  72. 2012-04-02 11:36:34.581 MyApp[3579:707]     Font name: SinhalaSangamMN
  73. 2012-04-02 11:36:34.584 MyApp[3579:707]     Font name: SinhalaSangamMN-Bold
  74. 2012-04-02 11:36:34.588 MyApp[3579:707] Family name: Hiragino Kaku Gothic ProN
  75. 2012-04-02 11:36:34.592 MyApp[3579:707]     Font name: HiraKakuProN-W6
  76. 2012-04-02 11:36:34.596 MyApp[3579:707]     Font name: HiraKakuProN-W3
  77. 2012-04-02 11:36:34.599 MyApp[3579:707] Family name: Papyrus
  78. 2012-04-02 11:36:34.603 MyApp[3579:707]     Font name: Papyrus-Condensed
  79. 2012-04-02 11:36:34.607 MyApp[3579:707]     Font name: Papyrus
  80. 2012-04-02 11:36:34.614 MyApp[3579:707] Family name: Verdana
  81. 2012-04-02 11:36:34.620 MyApp[3579:707]     Font name: Verdana
  82. 2012-04-02 11:36:34.626 MyApp[3579:707]     Font name: Verdana-Bold
  83. 2012-04-02 11:36:34.674 MyApp[3579:707]     Font name: Verdana-BoldItalic
  84. 2012-04-02 11:36:34.690 MyApp[3579:707]     Font name: Verdana-Italic
  85. 2012-04-02 11:36:34.730 MyApp[3579:707] Family name: Zapf Dingbats
  86. 2012-04-02 11:36:34.748 MyApp[3579:707]     Font name: ZapfDingbatsITC
  87. 2012-04-02 11:36:34.752 MyApp[3579:707] Family name: Courier
  88. 2012-04-02 11:36:34.757 MyApp[3579:707]     Font name: Courier-Bold
  89. 2012-04-02 11:36:34.762 MyApp[3579:707]     Font name: Courier
  90. 2012-04-02 11:36:34.769 MyApp[3579:707]     Font name: Courier-BoldOblique
  91. 2012-04-02 11:36:34.778 MyApp[3579:707]     Font name: Courier-Oblique
  92. 2012-04-02 11:36:34.786 MyApp[3579:707] Family name: Hoefler Text
  93. 2012-04-02 11:36:34.793 MyApp[3579:707]     Font name: HoeflerText-Black
  94. 2012-04-02 11:36:34.802 MyApp[3579:707]     Font name: HoeflerText-Italic
  95. 2012-04-02 11:36:34.810 MyApp[3579:707]     Font name: HoeflerText-Regular
  96. 2012-04-02 11:36:34.819 MyApp[3579:707]     Font name: HoeflerText-BlackItalic
  97. 2012-04-02 11:36:34.827 MyApp[3579:707] Family name: Euphemia UCAS
  98. 2012-04-02 11:36:34.836 MyApp[3579:707]     Font name: EuphemiaUCAS-Bold
  99. 2012-04-02 11:36:34.843 MyApp[3579:707]     Font name: EuphemiaUCAS
  100. 2012-04-02 11:36:34.848 MyApp[3579:707]     Font name: EuphemiaUCAS-Italic
  101. 2012-04-02 11:36:34.853 MyApp[3579:707] Family name: Helvetica
  102. 2012-04-02 11:36:34.857 MyApp[3579:707]     Font name: Helvetica-LightOblique
  103. 2012-04-02 11:36:34.863 MyApp[3579:707]     Font name: Helvetica
  104. 2012-04-02 11:36:34.873 MyApp[3579:707]     Font name: Helvetica-Oblique
  105. 2012-04-02 11:36:34.876 MyApp[3579:707]     Font name: Helvetica-BoldOblique
  106. 2012-04-02 11:36:34.880 MyApp[3579:707]     Font name: Helvetica-Bold
  107. 2012-04-02 11:36:34.884 MyApp[3579:707]     Font name: Helvetica-Light
  108. 2012-04-02 11:36:34.887 MyApp[3579:707] Family name: Hiragino Mincho ProN
  109. 2012-04-02 11:36:34.892 MyApp[3579:707]     Font name: HiraMinProN-W3
  110. 2012-04-02 11:36:34.898 MyApp[3579:707]     Font name: HiraMinProN-W6
  111. 2012-04-02 11:36:34.902 MyApp[3579:707] Family name: Bodoni Ornaments
  112. 2012-04-02 11:36:34.905 MyApp[3579:707]     Font name: BodoniOrnamentsITCTT
  113. 2012-04-02 11:36:34.923 MyApp[3579:707] Family name: Apple Color Emoji
  114. 2012-04-02 11:36:34.938 MyApp[3579:707]     Font name: AppleColorEmoji
  115. 2012-04-02 11:36:34.942 MyApp[3579:707] Family name: Optima
  116. 2012-04-02 11:36:34.946 MyApp[3579:707]     Font name: Optima-ExtraBlack
  117. 2012-04-02 11:36:34.950 MyApp[3579:707]     Font name: Optima-Italic
  118. 2012-04-02 11:36:34.954 MyApp[3579:707]     Font name: Optima-Regular
  119. 2012-04-02 11:36:34.965 MyApp[3579:707]     Font name: Optima-BoldItalic
  120. 2012-04-02 11:36:34.969 MyApp[3579:707]     Font name: Optima-Bold
  121. 2012-04-02 11:36:34.972 MyApp[3579:707] Family name: Gujarati Sangam MN
  122. 2012-04-02 11:36:34.985 MyApp[3579:707]     Font name: GujaratiSangamMN
  123. 2012-04-02 11:36:34.989 MyApp[3579:707]     Font name: GujaratiSangamMN-Bold
  124. 2012-04-02 11:36:34.993 MyApp[3579:707] Family name: Devanagari Sangam MN
  125. 2012-04-02 11:36:34.998 MyApp[3579:707]     Font name: DevanagariSangamMN
  126. 2012-04-02 11:36:35.002 MyApp[3579:707]     Font name: DevanagariSangamMN-Bold
  127. 2012-04-02 11:36:35.006 MyApp[3579:707] Family name: Times New Roman
  128. 2012-04-02 11:36:35.017 MyApp[3579:707]     Font name: TimesNewRomanPS-ItalicMT
  129. 2012-04-02 11:36:35.021 MyApp[3579:707]     Font name: TimesNewRomanPS-BoldMT
  130. 2012-04-02 11:36:35.032 MyApp[3579:707]     Font name: TimesNewRomanPSMT
  131. 2012-04-02 11:36:35.037 MyApp[3579:707]     Font name: TimesNewRomanPS-BoldItalicMT
  132. 2012-04-02 11:36:35.041 MyApp[3579:707] Family name: Kailasa
  133. 2012-04-02 11:36:35.045 MyApp[3579:707]     Font name: Kailasa
  134. 2012-04-02 11:36:35.050 MyApp[3579:707]     Font name: Kailasa-Bold
  135. 2012-04-02 11:36:35.053 MyApp[3579:707] Family name: Telugu Sangam MN
  136. 2012-04-02 11:36:35.064 MyApp[3579:707]     Font name: TeluguSangamMN-Bold
  137. 2012-04-02 11:36:35.068 MyApp[3579:707]     Font name: TeluguSangamMN
  138. 2012-04-02 11:36:35.071 MyApp[3579:707] Family name: Heiti SC
  139. 2012-04-02 11:36:35.099 MyApp[3579:707]     Font name: STHeitiSC-Medium
  140. 2012-04-02 11:36:35.107 MyApp[3579:707]     Font name: STHeitiSC-Light
  141. 2012-04-02 11:36:35.111 MyApp[3579:707] Family name: Futura
  142. 2012-04-02 11:36:35.115 MyApp[3579:707]     Font name: Futura-Medium
  143. 2012-04-02 11:36:35.119 MyApp[3579:707]     Font name: Futura-CondensedExtraBold
  144. 2012-04-02 11:36:35.122 MyApp[3579:707]     Font name: Futura-CondensedMedium
  145. 2012-04-02 11:36:35.135 MyApp[3579:707]     Font name: Futura-MediumItalic
  146. 2012-04-02 11:36:35.155 MyApp[3579:707] Family name: Bodoni 72
  147. 2012-04-02 11:36:35.160 MyApp[3579:707]     Font name: BodoniSvtyTwoITCTT-BookIta
  148. 2012-04-02 11:36:35.164 MyApp[3579:707]     Font name: BodoniSvtyTwoITCTT-Book
  149. 2012-04-02 11:36:35.168 MyApp[3579:707]     Font name: BodoniSvtyTwoITCTT-Bold
  150. 2012-04-02 11:36:35.171 MyApp[3579:707] Family name: Baskerville
  151. 2012-04-02 11:36:35.183 MyApp[3579:707]     Font name: Baskerville-SemiBoldItalic
  152. 2012-04-02 11:36:35.187 MyApp[3579:707]     Font name: Baskerville-Bold
  153. 2012-04-02 11:36:35.197 MyApp[3579:707]     Font name: Baskerville-Italic
  154. 2012-04-02 11:36:35.245 MyApp[3579:707]     Font name: Baskerville-BoldItalic
  155. 2012-04-02 11:36:35.253 MyApp[3579:707]     Font name: Baskerville-SemiBold
  156. 2012-04-02 11:36:35.258 MyApp[3579:707]     Font name: Baskerville
  157. 2012-04-02 11:36:35.262 MyApp[3579:707] Family name: Chalkboard SE
  158. 2012-04-02 11:36:35.266 MyApp[3579:707]     Font name: ChalkboardSE-Regular
  159. 2012-04-02 11:36:35.269 MyApp[3579:707]     Font name: ChalkboardSE-Bold
  160. 2012-04-02 11:36:35.279 MyApp[3579:707]     Font name: ChalkboardSE-Light
  161. 2012-04-02 11:36:35.284 MyApp[3579:707] Family name: Heiti TC
  162. 2012-04-02 11:36:35.288 MyApp[3579:707]     Font name: STHeitiTC-Medium
  163. 2012-04-02 11:36:35.299 MyApp[3579:707]     Font name: STHeitiTC-Light
  164. 2012-04-02 11:36:35.305 MyApp[3579:707] Family name: Copperplate
  165. 2012-04-02 11:36:35.310 MyApp[3579:707]     Font name: Copperplate
  166. 2012-04-02 11:36:35.313 MyApp[3579:707]     Font name: Copperplate-Light
  167. 2012-04-02 11:36:35.317 MyApp[3579:707]     Font name: Copperplate-Bold
  168. 2012-04-02 11:36:35.320 MyApp[3579:707] Family name: Party LET
  169. 2012-04-02 11:36:35.334 MyApp[3579:707]     Font name: PartyLetPlain
  170. 2012-04-02 11:36:35.338 MyApp[3579:707] Family name: American Typewriter
  171. 2012-04-02 11:36:35.351 MyApp[3579:707]     Font name: AmericanTypewriter-CondensedLight
  172. 2012-04-02 11:36:35.357 MyApp[3579:707]     Font name: AmericanTypewriter-Light
  173. 2012-04-02 11:36:35.361 MyApp[3579:707]     Font name: AmericanTypewriter-Bold
  174. 2012-04-02 11:36:35.364 MyApp[3579:707]     Font name: AmericanTypewriter
  175. 2012-04-02 11:36:35.368 MyApp[3579:707]     Font name: AmericanTypewriter-CondensedBold
  176. 2012-04-02 11:36:35.372 MyApp[3579:707]     Font name: AmericanTypewriter-Condensed
  177. 2012-04-02 11:36:35.384 MyApp[3579:707] Family name: AppleGothic
  178. 2012-04-02 11:36:35.400 MyApp[3579:707]     Font name: AppleGothic
  179. 2012-04-02 11:36:35.406 MyApp[3579:707] Family name: Bangla Sangam MN
  180. 2012-04-02 11:36:35.411 MyApp[3579:707]     Font name: BanglaSangamMN-Bold
  181. 2012-04-02 11:36:35.414 MyApp[3579:707]     Font name: BanglaSangamMN
  182. 2012-04-02 11:36:35.418 MyApp[3579:707] Family name: Noteworthy
  183. 2012-04-02 11:36:35.422 MyApp[3579:707]     Font name: Noteworthy-Light
  184. 2012-04-02 11:36:35.432 MyApp[3579:707]     Font name: Noteworthy-Bold
  185. 2012-04-02 11:36:35.436 MyApp[3579:707] Family name: Zapfino
  186. 2012-04-02 11:36:35.443 MyApp[3579:707]     Font name: Zapfino
  187. 2012-04-02 11:36:35.448 MyApp[3579:707] Family name: Tamil Sangam MN
  188. 2012-04-02 11:36:35.452 MyApp[3579:707]     Font name: TamilSangamMN
  189. 2012-04-02 11:36:35.456 MyApp[3579:707]     Font name: TamilSangamMN-Bold
  190. 2012-04-02 11:36:35.459 MyApp[3579:707] Family name: DB LCD Temp
  191. 2012-04-02 11:36:35.463 MyApp[3579:707]     Font name: DBLCDTempBlack
  192. 2012-04-02 11:36:35.467 MyApp[3579:707] Family name: Arial Hebrew
  193. 2012-04-02 11:36:35.471 MyApp[3579:707]     Font name: ArialHebrew
  194. 2012-04-02 11:36:35.475 MyApp[3579:707]     Font name: ArialHebrew-Bold
  195. 2012-04-02 11:36:35.479 MyApp[3579:707] Family name: Chalkduster
  196. 2012-04-02 11:36:35.482 MyApp[3579:707]     Font name: Chalkduster
  197. 2012-04-02 11:36:35.486 MyApp[3579:707] Family name: Georgia
  198. 2012-04-02 11:36:35.490 MyApp[3579:707]     Font name: Georgia-Italic
  199. 2012-04-02 11:36:35.493 MyApp[3579:707]     Font name: Georgia-BoldItalic
  200. 2012-04-02 11:36:35.497 MyApp[3579:707]     Font name: Georgia-Bold
  201. 2012-04-02 11:36:35.501 MyApp[3579:707]     Font name: Georgia
  202. 2012-04-02 11:36:35.504 MyApp[3579:707] Family name: Helvetica Neue
  203. 2012-04-02 11:36:35.508 MyApp[3579:707]     Font name: HelveticaNeue-Bold
  204. 2012-04-02 11:36:35.511 MyApp[3579:707]     Font name: HelveticaNeue-CondensedBlack
  205. 2012-04-02 11:36:35.515 MyApp[3579:707]     Font name: HelveticaNeue-Medium
  206. 2012-04-02 11:36:35.518 MyApp[3579:707]     Font name: HelveticaNeue
  207. 2012-04-02 11:36:35.522 MyApp[3579:707]     Font name: HelveticaNeue-Light
  208. 2012-04-02 11:36:35.526 MyApp[3579:707]     Font name: HelveticaNeue-CondensedBold
  209. 2012-04-02 11:36:35.529 MyApp[3579:707]     Font name: HelveticaNeue-LightItalic
  210. 2012-04-02 11:36:35.532 MyApp[3579:707]     Font name: HelveticaNeue-UltraLightItalic
  211. 2012-04-02 11:36:35.536 MyApp[3579:707]     Font name: HelveticaNeue-UltraLight
  212. 2012-04-02 11:36:35.540 MyApp[3579:707]     Font name: HelveticaNeue-BoldItalic
  213. 2012-04-02 11:36:35.543 MyApp[3579:707]     Font name: HelveticaNeue-Italic
  214. 2012-04-02 11:36:35.547 MyApp[3579:707] Family name: Gill Sans
  215. 2012-04-02 11:36:35.551 MyApp[3579:707]     Font name: GillSans-LightItalic
  216. 2012-04-02 11:36:35.555 MyApp[3579:707]     Font name: GillSans-BoldItalic
  217. 2012-04-02 11:36:35.558 MyApp[3579:707]     Font name: GillSans-Italic
  218. 2012-04-02 11:36:35.562 MyApp[3579:707]     Font name: GillSans
  219. 2012-04-02 11:36:35.565 MyApp[3579:707]     Font name: GillSans-Bold
  220. 2012-04-02 11:36:35.569 MyApp[3579:707]     Font name: GillSans-Light
  221. 2012-04-02 11:36:35.572 MyApp[3579:707] Family name: Palatino
  222. 2012-04-02 11:36:35.576 MyApp[3579:707]     Font name: Palatino-Roman
  223. 2012-04-02 11:36:35.580 MyApp[3579:707]     Font name: Palatino-Bold
  224. 2012-04-02 11:36:35.583 MyApp[3579:707]     Font name: Palatino-BoldItalic
  225. 2012-04-02 11:36:35.587 MyApp[3579:707]     Font name: Palatino-Italic
  226. 2012-04-02 11:36:35.591 MyApp[3579:707] Family name: Courier New
  227. 2012-04-02 11:36:35.594 MyApp[3579:707]     Font name: CourierNewPSMT
  228. 2012-04-02 11:36:35.598 MyApp[3579:707]     Font name: CourierNewPS-BoldMT
  229. 2012-04-02 11:36:35.601 MyApp[3579:707]     Font name: CourierNewPS-BoldItalicMT
  230. 2012-04-02 11:36:35.605 MyApp[3579:707]     Font name: CourierNewPS-ItalicMT
  231. 2012-04-02 11:36:35.608 MyApp[3579:707] Family name: Oriya Sangam MN
  232. 2012-04-02 11:36:35.612 MyApp[3579:707]     Font name: OriyaSangamMN-Bold
  233. 2012-04-02 11:36:35.616 MyApp[3579:707]     Font name: OriyaSangamMN
  234. 2012-04-02 11:36:35.619 MyApp[3579:707] Family name: Didot
  235. 2012-04-02 11:36:35.623 MyApp[3579:707]     Font name: Didot-Italic
  236. 2012-04-02 11:36:35.627 MyApp[3579:707]     Font name: Didot
  237. 2012-04-02 11:36:35.630 MyApp[3579:707]     Font name: Didot-Bold
  238. 2012-04-02 11:36:35.634 MyApp[3579:707] Family name: Bodoni 72 Smallcaps
  239. 2012-04-02 11:36:35.638 MyApp[3579:707]     Font name: BodoniSvtyTwoSCITCTT-Book
  240.    
  241. [button.titleLabel setFont: [button.titleLabel.font fontWithSize: sizeYouWant]];
  242.    
  243. button.titleLabel?.font = button.titleLabel?.font.fontWithSize(sizeYouWant)
  244.    
  245. button.titleLabel.font = [UIFont fontWithName:@"YOUR FONTNAME" size:12.0f]
  246.    
  247. button.titleLabel.font = [UIFont systemFontOfSize:14.0];
  248.    
  249. [_button.titleLabel setFont:[UIFont systemFontOfSize:15]];
  250.    
  251. shareButton.titleLabel?.font = UIFont.systemFontOfSize(size)
  252.    
  253. [LoginButton.titleLabel setFont:[UIFont boldSystemFontOfSize:15.0f*Ratio]];
  254.    
  255. button.titleLabel.font = <whatever font you want>
  256.    
  257. button.titleLabel.text = @"something";
  258.    
  259. [button setTitle:@"My title" forState:UIControlStateNormal]; //or whatever you want the control state to be
  260.    
  261. [btn_submit.titleLabel setFont:[UIFont systemFontOfSize:14.0f]];
  262.    
  263. - (void)awakeFromNib{
  264.  
  265.     [super awakeFromNib];
  266.  
  267.     [self setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
  268.     [self.titleLabel setFont:[UIFont fontWithName:@"font"
  269.                                      size:self.titleLabel.font.pointSize]];
  270.     [self setContentHorizontalAlignment:UIControlContentHorizontalAlignmentCenter];
  271. }
  272.    
  273. myButton.titleLabel?.font = myButton.titleLabel?.font.withSize(40)
RAW Paste Data
Top