public class AliyunFontStyle
extends AliyunObject
Constructor and Description |
---|
AliyunFontStyle(ISource aFontSource) |
AliyunFontStyle(ISource aFontSource,
float aFontSize,
AliyunTypeface aTypeface) |
AliyunFontStyle(java.lang.String aFontPath,
float aFontSize,
AliyunTypeface aTypeface) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getFontPath()
get the font path or font name of the caption
Added in v3.22.0
|
float |
getFontSize()
Get the font size radio
Added in v3.22.0
|
ISource |
getFontSource()
Get Font Source
Added in v3.23.0
|
AliyunTypeface |
getTypeface()
Set the font typeface style
Added in v3.22.0
|
void |
setFontPath(java.lang.String aFontPath)
Set the font name or font path, the font path must begin with file://
Added in v3.22.0
|
void |
setFontSize(float aFontSize)
Set the font size in pixels
Added in v3.22.0
|
void |
setFontSource(ISource fontSource)
Set Font Source
Added in v3.23.0
|
void |
setTypeface(AliyunTypeface aTypeface)
Set the font typeface style
Added in v3.22.0
|
public AliyunFontStyle(java.lang.String aFontPath, float aFontSize, AliyunTypeface aTypeface)
public AliyunFontStyle(ISource aFontSource)
public AliyunFontStyle(ISource aFontSource, float aFontSize, AliyunTypeface aTypeface)
public java.lang.String getFontPath()
public void setFontPath(java.lang.String aFontPath)
aFontPath
- the font name or font path, the font path must begin with file://public ISource getFontSource()
public void setFontSource(ISource fontSource)
public float getFontSize()
public void setFontSize(float aFontSize)
aFontSize
- font size radiopublic AliyunTypeface getTypeface()
public void setTypeface(AliyunTypeface aTypeface)
aTypeface
- the font typeface styleAliyunFontStyle