TextStyle
open class TextStyle : NSObject
글씨 색, 외곽선 색, 폰트 크기, 외곽선 두께 등의 스타일 속성을 지정하는 클래스.
-
Initializer
Declaration
Swift
@objc public init(fontSize: UInt = 20, fontColor: UIColor = UIColor.black, strokeThickness: UInt = 2, strokeColor: UIColor = UIColor.white, font: String = "", charSpace: Int = 0, lineSpace: Float = 1.0, aspectRatio: Float = 1.0)Parameters
fontSizefont 크기
fontColorfont 컬러
strokeThicknessfont 외곽선 두께
strokeColorfont 외곽선 색깔
font사용할 font 이름
charSpace자간. 0~4 사이값을 권장
lineSpace행간
aspectRatio장평
-
Initializer
Declaration
Swift
@objc public convenience init(fontSize: UInt, fontColor: UIColor)Parameters
fontSizefont 크기
fontColorfont 컬러
-
글씨의 색
Declaration
Swift
@objc open var fontColor: UIColor { get } -
글씨 외곽선 색
Declaration
Swift
@objc open var strokeColor: UIColor { get } -
글씨 크기
Declaration
Swift
@objc open var fontSize: UInt { get } -
글씨 외곽선의 두께
Declaration
Swift
@objc open var strokeThickness: UInt { get } -
폰트
Declaration
Swift
@objc open var font: String { get } -
자간
Declaration
Swift
@objc open var charSpace: Int { get } -
행간
Declaration
Swift
@objc open var lineSpace: Float { get } -
장평
Declaration
Swift
@objc open var aspectRatio: Float { get }
TextStyle Class Reference