OTVTextStyle
public class OTVTextStyle : NSObject
OTVTextStyle is a class that represents the text style for subtitles. It includes properties for text size scale factor, font family, text color, background color, and character edge effect.
-
Declaration
Swift
public var textSizeScaleFactor: Float?
-
Declaration
Swift
public var fontFamily: String?
-
Declaration
Swift
public var textColor: UIColor?
-
Declaration
Swift
public var backgroundColor: UIColor?
-
Declaration
Swift
public var characterEdgeEffect: OTVTextStyleCharacterEdge?
-
Initializes a new instance of OTVTextStyle with optional parameters.
Declaration
Swift
public init(fontFamily: String? = nil, textSizeScaleFactor: Float? = 1.0, textColor: UIColor? = nil, backgroundColor: UIColor? = nil, characterEdgeEffect: OTVTextStyleCharacterEdge? = nil)
Parameters
fontFamily
The font family for the text style.
textSizeScaleFactor
The scale factor for the text size.
textColor
The color of the text.
backgroundColor
The background color of the text.
characterEdgeEffect
The effect applied to the character edge.