WPS 基础接口 > 文字 API 参考 > Document > 属性 > Document.DoNotEmbedSystemFonts 属性
如果为 True,则 WPS 不嵌入常规系统字体。Boolean 类型,可读写。

语法

表达式.DoNotEmbedSystemFonts

表达式   返回 Document 对象的表达式。

说明

如果用户使用中文系统创建文档,并希望该文档对于那些系统中没有该语言字体的用户也可读,可将 Document 属性设为 False。例如,日语系统的用户可以选择在文档中嵌入字体,使日文文档在所有系统中可读。

示例

本示例在当前文档中嵌入所有字体。

示例代码
function EmbedFonts() {
    if(ActiveDocument.EmbedTrueTypeFonts == false) {
        ActiveDocument.EmbedTrueTypeFonts = true
        ActiveDocument.DoNotEmbedSystemFonts = false
}
    else {
        ActiveDocument.DoNotEmbedSystemFonts = false
}
}


请参阅