public interface FontConfig
WebView object.| 限定符和类型 | 接口 | 说明 |
|---|---|---|
static class |
FontConfig.FontGenericFamily |
Enumerates the font families supported by a
WebView object. |
static class |
FontConfig.FontSizeType |
Enumerates the font types that support setting of the font size for a
WebView object. |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
String |
getFontFamily(FontConfig.FontGenericFamily genericFamily) |
Obtains a specified font family.
|
int |
getFontSize(FontConfig.FontSizeType type) |
Obtains the size of a specified font type.
|
void |
setFontFamily(FontConfig.FontGenericFamily genericFamily,
String familyName) |
Sets a specified font family.
|
void |
setFontSize(FontConfig.FontSizeType type,
int size) |
Sets the size of a specified font type.
|
void setFontFamily(FontConfig.FontGenericFamily genericFamily, String familyName)
genericFamily - Indicates the generic family, which is defined by FontGenericFamily.familyName - Indicates the family name, which represents a font.String getFontFamily(FontConfig.FontGenericFamily genericFamily)
genericFamily - Indicates the generic family, which is defined by FontGenericFamily.void setFontSize(FontConfig.FontSizeType type, int size)
type - Indicates the font type, which is defined by FontSizeType.size - Indicates the font size.int getFontSize(FontConfig.FontSizeType type)
type - Indicates the font type, which is defined by FontSizeType.