跳到主要内容

generateFontFamily 生成字体家族

generateFontFamily

类型: MethodDeclaration

所属类: Printer

定义位置: printer.ts

描述

生成字体家族

参数 firstFont: 主要字体的名称

返回值:字体家族字符串

参数

参数名类型描述默认值
firstFontstring--

返回值

类型: string

字体家族字符串

源代码

位置: 第 1429 行

public static generateFontFamily(firstFont: string): string {
return firstFont ? `${firstFont}, ${this.font}` : this.font
}

文档生成时间:2025/7/7 12:07:06