WebPageFonts 集合对象

优质
小牛编辑
121浏览
2023-12-01

WebPageFont 对象的集合,描述了在文档存为 Web 页时所使用的比例字体、比例字体大小、等宽字体和等宽字体大小。可以为每个可用的字符集指定一套 Web 页字体属性。

使用 WebPageFonts 集合

WebPageFonts 集合为每个字符集包含一个WebPageFont 对象。

以下示例利用Item 属性将myFont 设置为当前应用程序中的 English/Western European/Other Latin Script 字符集的WebPageFont 对象。

Dim myFont As WebPageFont
Set myFont = _
  Application.DefaultWebOptions.Fonts.Item_
  (msoCharacterSetEnglishWesternEuropeanOtherLatinScript)
WebPageFonts (WebPageFont)
可支持以下字符集:
msoCharacterSetArabic
msoCharacterSetCyrillic
msoCharacterSetEnglishWesternEuropeanOtherLatinScript
msoCharacterSetGreek
msoCharacterSetHebrew
msoCharacterSetJapanese
msoCharacterSetKorean
msoCharacterSetMultilingualUnicode
msoCharacterSetSimplifiedChinese
msoCharacterSetThai
msoCharacterSetTraditionalChinese
msoCharacterSetVietnamese