public class AliyunFontStyle
extends AliyunObject
| Constructor and Description |
|---|
AliyunFontStyle(ISource aFontSource)
v3.23.0 新增
|
AliyunFontStyle(ISource aFontSource,
float aFontSize,
AliyunTypeface aTypeface)
v3.23.0 新增
|
AliyunFontStyle(java.lang.String aFontPath,
float aFontSize,
AliyunTypeface aTypeface)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getFontPath()
Deprecated.
使用
getFontSource()替代
获取文字路径或者名称
v3.22.0 新增 |
float |
getFontSize()
获取字体大小比例值
v3.22.0 新增
|
ISource |
getFontSource()
获取字体资源
v3.23.0 新增
|
AliyunTypeface |
getTypeface()
获取字形样式
v3.22.0 新增
|
void |
setFontPath(java.lang.String aFontPath)
Deprecated.
使用
setFontSource(ISource)替代
设置字幕的文字名称或者路径,仅支持文字名称或者file://路径
v3.22.0 新增 |
void |
setFontSize(float aFontSize)
设置字体大小比例值
v3.22.0 新增
|
void |
setFontSource(ISource fontSource)
设置字体资源
v3.23.0 新增
|
void |
setTypeface(AliyunTypeface aTypeface)
设置字体字形样式
v3.22.0 新增
|
public AliyunFontStyle(java.lang.String aFontPath,
float aFontSize,
AliyunTypeface aTypeface)
AliyunFontStyle(ISource,float,AliyunTypeface)替代public AliyunFontStyle(ISource aFontSource)
public AliyunFontStyle(ISource aFontSource, float aFontSize, AliyunTypeface aTypeface)
public java.lang.String getFontPath()
getFontSource()替代
获取文字路径或者名称
v3.22.0 新增public void setFontPath(java.lang.String aFontPath)
setFontSource(ISource)替代
设置字幕的文字名称或者路径,仅支持文字名称或者file://路径
v3.22.0 新增aFontPath - 文字名称或者file://路径public ISource getFontSource()
public void setFontSource(ISource fontSource)
public float getFontSize()
public void setFontSize(float aFontSize)
aFontSize - 字体大小相对于屏幕宽高最小边的比例值public AliyunTypeface getTypeface()
public void setTypeface(AliyunTypeface aTypeface)
aTypeface - 字体样式AliyunTypeface