FontFamilies

interface FontFamilies

提供了一组预定义的字体族(FontFamily)以及创建自定义字体族的方法。

Author

M8Test, [email protected], https://m8test.com

Functions

Link copied to clipboard
abstract fun createFromFonts(vararg fonts: (Fonts) -> Font): FontFamily

根据一个或多个 Font 资源创建一个自定义字体族。

Link copied to clipboard
abstract fun getCursive(): FontFamily

手写体/草书字体族(Cursive)。

Link copied to clipboard
abstract fun getDefault(): FontFamily

平台默认字体。

Link copied to clipboard
abstract fun getMonospace(): FontFamily

等宽字体族(Monospace),其中所有字符占据相同的水平宽度。

Link copied to clipboard
abstract fun getSansSerif(): FontFamily

无衬线字体族(Sans Serif),特点是笔画末端没有装饰。

Link copied to clipboard
abstract fun getSerif(): FontFamily

衬线字体族(Serif),特点是笔画末端有装饰性的小线条。