https://developer.apple.com/library/ios/#documentation/UIKit/Reference/UITextView_Class/Reference/UITextView.html
Citiram: |
font
The font of the text.
@property(nonatomic, retain) UIFont *font
Discussion
This property applies to the entire text string. The default font is a 17-point Helvetica plain font. |
Primer:
Koda: |
textview.font = [UIFont fontWithName:@"ArialUnicodeMS" size:25];
|
Moraš pa vedeti, da iOS nima vgrajenih vseh možnih fontov... 100% ima pa vgrajene te (mogoče sedaj že kakšnega več):
Citiram: |
2010-02-09 00:16:14.732 FontFamily: AppleGothic
2010-02-09 00:16:14.733 FontName: AppleGothic
2010-02-09 00:16:14.734 FontFamily: Hiragino Kaku Gothic ProN
2010-02-09 00:16:14.738 FontName: HiraKakuProN-W6
2010-02-09 00:16:14.738 FontName: HiraKakuProN-W3
2010-02-09 00:16:14.739 FontFamily: Arial Unicode MS
2010-02-09 00:16:14.740 FontName: ArialUnicodeMS
2010-02-09 00:16:14.740 FontFamily: Heiti K
2010-02-09 00:16:14.741 FontName: STHeitiK-Medium
2010-02-09 00:16:14.742 FontName: STHeitiK-Light
2010-02-09 00:16:14.742 FontFamily: DB LCD Temp
2010-02-09 00:16:14.743 FontName: DBLCDTempBlack
2010-02-09 00:16:14.744 FontFamily: Helvetica
2010-02-09 00:16:14.745 FontName: Helvetica-Oblique
2010-02-09 00:16:14.746 FontName: Helvetica-BoldOblique
2010-02-09 00:16:14.746 FontName: Helvetica
2010-02-09 00:16:14.747 FontName: Helvetica-Bold
2010-02-09 00:16:14.748 FontFamily: Marker Felt
2010-02-09 00:16:14.749 FontName: MarkerFelt-Thin
2010-02-09 00:16:14.750 FontFamily: Times New Roman
2010-02-09 00:16:14.750 FontName: TimesNewRomanPSMT
2010-02-09 00:16:14.752 FontName: TimesNewRomanPS-BoldMT
2010-02-09 00:16:14.753 FontName: TimesNewRomanPS-BoldItalicMT
2010-02-09 00:16:14.754 FontName: TimesNewRomanPS-ItalicMT
2010-02-09 00:16:14.757 FontFamily: Verdana
2010-02-09 00:16:14.757 FontName: Verdana-Bold
2010-02-09 00:16:14.758 FontName: Verdana-BoldItalic
2010-02-09 00:16:14.759 FontName: Verdana
2010-02-09 00:16:14.759 FontName: Verdana-Italic
2010-02-09 00:16:14.760 FontFamily: Georgia
2010-02-09 00:16:14.761 FontName: Georgia-Bold
2010-02-09 00:16:14.761 FontName: Georgia
2010-02-09 00:16:14.762 FontName: Georgia-BoldItalic
2010-02-09 00:16:14.762 FontName: Georgia-Italic
2010-02-09 00:16:14.763 FontFamily: Arial Rounded MT Bold
2010-02-09 00:16:14.764 FontName: ArialRoundedMTBold
2010-02-09 00:16:14.764 FontFamily: Trebuchet MS
2010-02-09 00:16:14.765 FontName: TrebuchetMS-Italic
2010-02-09 00:16:14.766 FontName: TrebuchetMS
2010-02-09 00:16:14.766 FontName: Trebuchet-BoldItalic
2010-02-09 00:16:14.767 FontName: TrebuchetMS-Bold
2010-02-09 00:16:14.768 FontFamily: Heiti TC
2010-02-09 00:16:14.768 FontName: STHeitiTC-Light
2010-02-09 00:16:14.769 FontName: STHeitiTC-Medium
2010-02-09 00:16:14.769 FontFamily: Geeza Pro
2010-02-09 00:16:14.770 FontName: GeezaPro-Bold
2010-02-09 00:16:14.771 FontName: GeezaPro
2010-02-09 00:16:14.771 FontFamily: Courier
2010-02-09 00:16:14.772 FontName: Courier
2010-02-09 00:16:14.773 FontName: Courier-BoldOblique
2010-02-09 00:16:14.774 FontName: Courier-Oblique
2010-02-09 00:16:14.777 FontName: Courier-Bold
2010-02-09 00:16:14.778 FontFamily: Arial
2010-02-09 00:16:14.779 FontName: ArialMT
2010-02-09 00:16:14.785 FontName: Arial-BoldMT
2010-02-09 00:16:14.786 FontName: Arial-BoldItalicMT
2010-02-09 00:16:14.788 FontName: Arial-ItalicMT
2010-02-09 00:16:14.789 FontFamily: Heiti J
2010-02-09 00:16:14.789 FontName: STHeitiJ-Medium
2010-02-09 00:16:14.790 FontName: STHeitiJ-Light
2010-02-09 00:16:14.791 FontFamily: Arial Hebrew
2010-02-09 00:16:14.791 FontName: ArialHebrew
2010-02-09 00:16:14.792 FontName: ArialHebrew-Bold
2010-02-09 00:16:14.794 FontFamily: Courier New
2010-02-09 00:16:14.795 FontName: CourierNewPS-BoldMT
2010-02-09 00:16:14.795 FontName: CourierNewPS-ItalicMT
2010-02-09 00:16:14.796 FontName: CourierNewPS-BoldItalicMT
2010-02-09 00:16:14.797 FontName: CourierNewPSMT
2010-02-09 00:16:14.797 FontFamily: Zapfino
2010-02-09 00:16:14.798 FontName: Zapfino
2010-02-09 00:16:14.798 FontFamily: American Typewriter
2010-02-09 00:16:14.799 FontName: AmericanTypewriter
2010-02-09 00:16:14.799 FontName: AmericanTypewriter-Bold
2010-02-09 00:16:14.800 FontFamily: Heiti SC
2010-02-09 00:16:14.801 FontName: STHeitiSC-Medium
2010-02-09 00:16:14.801 FontName: STHeitiSC-Light
2010-02-09 00:16:14.802 FontFamily: Helvetica Neue
2010-02-09 00:16:14.803 FontName: HelveticaNeue
2010-02-09 00:16:14.803 FontName: HelveticaNeue-Bold
2010-02-09 00:16:14.804 FontFamily: Thonburi
2010-02-09 00:16:14.805 FontName: Thonburi-Bold
2010-02-09 00:16:14.805 FontName: Thonburi |