FontSyntheses

interface FontSyntheses

提供了一组预定义的字体合成选项(FontSynthesis)。

Author

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

Functions

Link copied to clipboard
abstract fun getAll(): FontSynthesis

合成粗体和斜体。如果字体族中不存在任何一种,系统都会尝试伪造它们。

Link copied to clipboard
abstract fun getNone(): FontSynthesis

关闭字体合成。如果字体族中不存在,则不会合成粗体或斜体。

Link copied to clipboard
abstract fun getStyle(): FontSynthesis

仅合成斜体。如果字体族中不存在斜体,系统会尝试伪造它。粗体则不会被合成。

Link copied to clipboard
abstract fun getWeight(): FontSynthesis

仅合成粗体。如果字体族中不存在粗体,系统会尝试伪造它。斜体则不会被合成。