Packagevn.karaokeplayer.data
Classpublic class LyricStyle

TODO: consider support other property of text format like fontWeight, fontStyle, leading ... TODO: create functions to get native TextFormat & space width



Public Properties
 PropertyDefined by
  color : Number
LyricStyle
  embedFonts : Boolean = false
LyricStyle
  font : String
LyricStyle
  fontStyle : String = "normal"
LyricStyle
  fontWeight : String = "normal"
LyricStyle
  lineSpace : Number
LyricStyle
  size : Number
LyricStyle
  strokeColor : Number
LyricStyle
Public Methods
 MethodDefined by
  
LyricStyle(font:String = null, size:Number, color:Number, embedFonts:Boolean = false, strokeColor:Number)
LyricStyle
  
copyBasicStyles(basicStyle:LyricStyle):void
LyricStyle
Public Constants
 ConstantDefined by
  BASIC : String = "b"
[static]
LyricStyle
  DEFAULT_BASIC_STYLE : LyricStyle
[static]
LyricStyle
  DEFAULT_FEMALE_STYLE : LyricStyle
[static]
LyricStyle
  DEFAULT_MALE_STYLE : LyricStyle
[static]
LyricStyle
  DEFAULT_SYNC_STYLE : LyricStyle
[static]
LyricStyle
  FEMALE : String = "f"
[static]
LyricStyle
  MALE : String = "m"
[static]
LyricStyle
Property detail
colorproperty
public var color:Number
embedFontsproperty 
public var embedFonts:Boolean = false
fontproperty 
public var font:String
fontStyleproperty 
public var fontStyle:String = "normal"
fontWeightproperty 
public var fontWeight:String = "normal"
lineSpaceproperty 
public var lineSpace:Number
sizeproperty 
public var size:Number
strokeColorproperty 
public var strokeColor:Number
Constructor detail
LyricStyle()constructor
public function LyricStyle(font:String = null, size:Number, color:Number, embedFonts:Boolean = false, strokeColor:Number)Parameters
font:String (default = null)
 
size:Number
 
color:Number
 
embedFonts:Boolean (default = false)
 
strokeColor:Number
Method detail
copyBasicStyles()method
public function copyBasicStyles(basicStyle:LyricStyle):voidParameters
basicStyle:LyricStyle
Constant detail
BASICconstant
public static const BASIC:String = "b"
DEFAULT_BASIC_STYLEconstant 
public static const DEFAULT_BASIC_STYLE:LyricStyle
DEFAULT_FEMALE_STYLEconstant 
public static const DEFAULT_FEMALE_STYLE:LyricStyle
DEFAULT_MALE_STYLEconstant 
public static const DEFAULT_MALE_STYLE:LyricStyle
DEFAULT_SYNC_STYLEconstant 
public static const DEFAULT_SYNC_STYLE:LyricStyle
FEMALEconstant 
public static const FEMALE:String = "f"
MALEconstant 
public static const MALE:String = "m"