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
fontFamilyThe font family for the text style.
textSizeScaleFactorThe scale factor for the text size.
textColorThe color of the text.
backgroundColorThe background color of the text.
characterEdgeEffectThe effect applied to the character edge.